-
-
Notifications
You must be signed in to change notification settings - Fork 576
Box
rivo edited this page Dec 4, 2020
·
2 revisions
A simple Box with a title:
Code:
package main
import "github.com/rivo/tview"
func main() {
box := tview.NewBox().
SetBorder(true).
SetTitle("Box Demo")
if err := tview.NewApplication().SetRoot(box, true).Run(); err != nil {
panic(err)
}
}