Skip to content
Sections
>> Trisquel >> 套件 >> aramo >> golang >> golang-github-muesli-ansi-dev
aramo  ]
[ 原始碼: golang-github-muesli-ansi  ]

套件: golang-github-muesli-ansi-dev (0.0~git20211031.c9f0611-2)

raw ANSI sequence helpers for Go

Package ansi provides raw ANSI sequence helpers for Go.

ANSI Writer

  import "github.com/muesli/ansi"

  w := ansi.Writer{Forward: os.Stdout}
  w.Write([]byte("\x1b[31mHello, world!\x1b[0m"))
  w.Close()

Compressor

The ANSI compressor eliminates unnecessary/redundant ANSI sequences.

  import "github.com/muesli/ansi/compressor"

  w := compressor.Writer{Forward: os.Stdout}
  w.Write([]byte("\x1b[31mHello, world!\x1b[0m"))
  w.Close()

其他與 golang-github-muesli-ansi-dev 有關的套件

  • 依賴
  • 推薦
  • 建議

下載 golang-github-muesli-ansi-dev

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 5.2 kB30 kB [文件列表]