doc.go 673 B

123456789101112131415161718192021222324252627282930
  1. // Copyright 2017 Zack Guo <zack.y.guo@gmail.com>. All rights reserved.
  2. // Use of this source code is governed by a MIT license that can
  3. // be found in the LICENSE file.
  4. /*
  5. Package termui is a library designed for creating command line UI. For more info, goto http://notabug.org/themusicgod1/termui
  6. A simplest example:
  7. package main
  8. import ui "notabug.org/themusicgod1/termui"
  9. func main() {
  10. if err:=ui.Init(); err != nil {
  11. panic(err)
  12. }
  13. defer ui.Close()
  14. g := ui.NewGauge()
  15. g.Percent = 50
  16. g.Width = 50
  17. g.BorderLabel = "Gauge"
  18. ui.Render(g)
  19. ui.Loop()
  20. }
  21. */
  22. package termui