mirror of https://github.com/gizak/termui.git
Update godoc
This commit is contained in:
parent
9f9525dc63
commit
71aca577bc
|
@ -21,6 +21,8 @@ Note that termui is currently undergoing major API changes so be prepared for th
|
|||
### Hello World
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import ui "github.com/gizak/termui"
|
||||
|
||||
func main() {
|
||||
|
|
23
doc.go
23
doc.go
|
@ -3,27 +3,6 @@
|
|||
// be found in the LICENSE file.
|
||||
|
||||
/*
|
||||
Package termui is a library designed for creating command line UI. For more info, goto http://github.com/gizak/termui
|
||||
|
||||
A simplest example:
|
||||
package main
|
||||
|
||||
import ui "github.com/gizak/termui"
|
||||
|
||||
func main() {
|
||||
if err:=ui.Init(); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
defer ui.Close()
|
||||
|
||||
g := ui.NewGauge()
|
||||
g.Percent = 50
|
||||
g.Width = 50
|
||||
g.BorderLabel = "Gauge"
|
||||
|
||||
ui.Render(g)
|
||||
|
||||
ui.Loop()
|
||||
}
|
||||
Package termui is a library for creating terminal user interfaces (TUIs) using widgets.
|
||||
*/
|
||||
package termui
|
||||
|
|
Loading…
Reference in New Issue