diff options
Diffstat (limited to 'doc.go')
| -rw-r--r-- | doc.go | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -23,10 +23,7 @@ Here is a simple, complete program that asks the user for their name and greets ui.AppQuit = w.Closing // treat quitting the application like closing the main window nameField := ui.NewLineEdit("Enter Your Name Here") button := ui.NewButton("Click Here For a Greeting") - err := w.Open(ui.NewVerticalStack(nameField, button)) - if err != nil { - panic(err) - } + w.Open(ui.NewVerticalStack(nameField, button)) for { select { |
