forked from tslocum/cview
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
426 B
19 lines
426 B
package main |
|
|
|
import ( |
|
"fmt" |
|
|
|
"code.rocketnine.space/tslocum/cview" |
|
"github.com/gdamore/tcell/v2" |
|
) |
|
|
|
// End shows the final slide. |
|
func End(nextSlide func()) (title string, content cview.Primitive) { |
|
textView := cview.NewTextView() |
|
textView.SetDoneFunc(func(key tcell.Key) { |
|
nextSlide() |
|
}) |
|
url := "https://code.rocketnine.space/tslocum/cview" |
|
fmt.Fprint(textView, url) |
|
return "End", Center(len(url), 1, textView) |
|
}
|
|
|