Golang 终端仪表 TermUI

码农软件 · 软件分类 · 报表/图表制作 · 2019-08-19 14:42:57

软件介绍

TermUI 是 Golang 的终端仪表,灵感来自于 blessed-contrib,完全由 Go 实现。它跨平台,易于编译,并且完全定制化。

demo

示例代码:

    import ui "github.com/gizak/termui" // <- ui shortcut, optional
    func main() {
        err := ui.Init()
        if err != nil {
            panic(err)
        }
        defer ui.Close()
        p := ui.NewPar(":PRESS q TO QUIT DEMO")
        p.Height = 3
        p.Width = 50
        p.TextFgColor = ui.ColorWhite
        p.Border.Label = "Text Box"
        p.Border.FgColor = ui.ColorCyan
        g := ui.NewGauge()
        g.Percent = 50
        g.Width = 50
        g.Height = 3
        g.Y = 11
        g.Border.Label = "Gauge"
        g.BarColor = ui.ColorRed
        g.Border.FgColor = ui.ColorWhite
        g.Border.LabelFgColor = ui.ColorCyan
        ui.Render(p, g)
        // event handler...
    }

本文地址:https://www.codercto.com/soft/d/12711.html

Developing Large Web Applications

Developing Large Web Applications

Kyle Loudon / Yahoo Press / 2010-3-15 / USD 34.99

As web applications grow, so do the challenges. These applications need to live up to demanding performance requirements, and be reliable around the clock every day of the year. And they need to withs......一起来看看 《Developing Large Web Applications》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具