Debian Codegraph @

debian/control

raw
1 Source: golang-github-muesli-ansi
2 Section: golang
3 Priority: optional
4 Maintainer: Debian Go Packaging Team <[email protected]>
5 Uploaders: Anthony Fok <[email protected]>
6 Rules-Requires-Root: no
7 Build-Depends: debhelper-compat (= 13),
8 dh-sequence-golang,
9 golang-any,
10 golang-github-mattn-go-runewidth-dev
11 Testsuite: autopkgtest-pkg-go
12 Standards-Version: 4.6.0
13 Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-muesli-ansi
14 Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-muesli-ansi.git
15 Homepage: https://github.com/muesli/ansi
16 XS-Go-Import-Path: github.com/muesli/ansi
17
18 Package: golang-github-muesli-ansi-dev
19 Architecture: all
20 Multi-Arch: foreign
21 Depends: golang-github-mattn-go-runewidth-dev,
22 ${misc:Depends}
23 Description: raw ANSI sequence helpers for Go
24 Package ansi provides raw ANSI sequence helpers for Go.
25 .
26 ANSI Writer
27 .
28 import "github.com/muesli/ansi"
29 .
30 w := ansi.Writer{Forward: os.Stdout}
31 w.Write([]byte("\x1b[31mHello, world!\x1b[0m"))
32 w.Close()
33 .
34 Compressor
35 .
36 The ANSI compressor eliminates unnecessary/redundant ANSI sequences.
37 .
38 import "github.com/muesli/ansi/compressor"
39 .
40 w := compressor.Writer{Forward: os.Stdout}
41 w.Write([]byte("\x1b[31mHello, world!\x1b[0m"))
42 w.Close()