Update docs

This commit is contained in:
Roi Martin 2016-10-24 07:26:59 +02:00
parent ddbc9be671
commit fc121d98fd
2 changed files with 4 additions and 4 deletions

View File

@ -47,8 +47,8 @@ import (
)
func main() {
g := gocui.NewGui()
if err := g.Init(); err != nil {
g, err := gocui.NewGui()
if err != nil {
log.Panicln(err)
}
defer g.Close()

4
doc.go
View File

@ -7,8 +7,8 @@ Package gocui allows to create console user interfaces.
Create a new GUI:
g := gocui.NewGui()
if err := g.Init(); err != nil {
g, err := gocui.NewGui()
if err != nil {
// handle error
}
defer g.Close()