goban

goban -- 最小化和并发的 CUI。「goban - minimal and concurrent CUI」

  • 所有者: eihigh/goban
  • 平台: Linux, Mac, Windows
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

goban - minimal and concurrent CUI

package goban (碁盤, meaning of Go game board in Japanese) provides CUI with simple API.

Hello World

package main

import (
	"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 API
  • Isolated Views and Controllers
  • Receive events from channel instead of event handlers
  • Color with escape sequences
  • Box drawings
  • Grid 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 .

主要指标

概览
名称与所有者eihigh/goban
主编程语言Go
编程语言Go (语言数: 1)
平台Linux, Mac, Windows
许可证MIT License
所有者活动
创建于2019-07-28 07:50:52
推送于2019-08-18 09:49:47
最后一次提交2019-08-01 19:22:21
发布数0
用户参与
星数55
关注者数2
派生数4
提交数16
已启用问题?
问题数3
打开的问题数2
拉请求数2
打开的拉请求数1
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?