Debian Codegraph @

demos/presentation/end.go

raw symbols SCIP
1 package main
2
3 import (
4 "fmt"
5
6 "github.com/gdamore/tcell/v2"
7 "github.com/rivo/tview"
8 )
9
10 // End shows the final slide.
11 func End(nextSlide func()) (title string, content tview.Primitive) {
12 textView := tview.NewTextView().
13 SetDynamicColors(true).
14 SetDoneFunc(func(key tcell.Key) {
15 nextSlide()
16 })
17 url := "[:::https://github.com/rivo/tview]https://github.com/rivo/tview"
18 fmt.Fprint(textView, url)
19 return "End", Center(tview.TaggedStringWidth(url), 1, textView)
20 }