洞察探索如何利用兼容微信生态的小程序容器,实现跨平台开发,助力金融和车联网行业的数字化转型。
576
2022-11-02
goban - 最小和并发的CUI
goban - minimal and concurrent CUI
package goban (碁盤, meaning of Go game board in Japanese) provides CUI with simple API.
Hello World
package mainimport ( "context" "github.com/eihigh/goban")func main() { goban.Main(app, view)}func app(_ context.Context, es goban.Events) error { goban.Show() es.ReadKey() return nil}func view() { goban.Screen().Enclose("hello").Prints("Hello World!\nPress any key to exit.")}
Features
Minimal APIIsolated Views and ControllersReceive events from channel instead of event handlersColor with escape sequencesBox drawingsGrid layouts
Status
goban is under active development. The API is subject to change.
TODO
Flexbox layouts More widgets Mouse support
Documentation
See https://godoc.org/github.com/eihigh/goban .
Dependencies
This package is based on github.com/gdamore/tcell .
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~