Skip to content
Sections
>> Trisquel >> Paketit >> aramo >> golang >> golang-github-muesli-ansi-dev
aramo  ]
[ Source: golang-github-muesli-ansi  ]

Paketti: 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()

Muut pakettiin golang-github-muesli-ansi-dev liittyvät paketit

  • depends
  • recommends
  • suggests

Imuroi golang-github-muesli-ansi-dev

Imurointi kaikille saataville arkkitehtuureille
Arkkitehtuuri Paketin koko Koko asennettuna Tiedostot
all 5.2 kt30 kt [tiedostoluettelo]