goban

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

  • Owner: eihigh/goban
  • Platform: Linux, Mac, Windows
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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 .

Main metrics

Overview
Name With Ownereihigh/goban
Primary LanguageGo
Program languageGo (Language Count: 1)
PlatformLinux, Mac, Windows
License:MIT License
所有者活动
Created At2019-07-28 07:50:52
Pushed At2019-08-18 09:49:47
Last Commit At2019-08-01 19:22:21
Release Count0
用户参与
Stargazers Count55
Watchers Count2
Fork Count4
Commits Count16
Has Issues Enabled
Issues Count3
Issue Open Count2
Pull Requests Count2
Pull Requests Open Count1
Pull Requests Close Count0
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private