package
module
Version:
v0.0.0-...-75f3a9c
Opens a new window with list of versions in this module.
Published: Dec 22, 2022
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
unescape
This is an utility library for remove ANSI sequence from text. It is created for helping processing ANSI text produced in CI jobs.
It is inspired by muesli/ansi
Unescape Writer
import "github.com/alexjx/unescape"
w := unescape.Unescaper{Forward: os.Stdout}
w.Write([]byte("\x1b[31mHello, world!\x1b[0m"))
Documentation
¶
type Unescaper struct {
Forward io.Writer
}
Unescaper is used to remove ANSI escape sequences from a stream of bytes.
Write implements io.Writer, it consumes the bytes and removes ANSI escape
Source Files
¶
Click to show internal directories.
Click to hide internal directories.