Documentation
¶
Index ¶
- Constants
- Variables
- func CCat(fname string, p CCatPrinter, w io.Writer) error
- func CPrint(r io.Reader, w io.Writer, palettes ColorPalettes) error
- func Colorize(attr, text string) string
- func HTMLize(attr, text string) string
- type AutoColorPrinter
- type CCatPrinter
- type ColorCodes
- type ColorPalettes
- type ColorPrinter
- type Config
- type HTMLCodes
- type PlainTextPrinter
- type Printer
Constants ¶
View Source
const Version = "1.1.0"
Variables ¶
View Source
var ( LightColorPalettes = ColorPalettes{ // contains filtered or unexported fields } DarkColorPalettes = ColorPalettes{ // contains filtered or unexported fields } Mode mode.Mode = mode.C )
Functions ¶
Types ¶
type AutoColorPrinter ¶
type AutoColorPrinter struct {
ColorPalettes ColorPalettes
}
type ColorCodes ¶
func (ColorCodes) String ¶
func (c ColorCodes) String() string
type ColorPalettes ¶
type ColorPalettes map[kind]string
func (ColorPalettes) Set ¶
func (c ColorPalettes) Set(k, v string) bool
func (ColorPalettes) String ¶
func (c ColorPalettes) String() string
type ColorPrinter ¶
type ColorPrinter struct {
ColorPalettes ColorPalettes
}
type Config ¶ added in v1.1.0
type PlainTextPrinter ¶
type PlainTextPrinter struct {
}
Click to show internal directories.
Click to hide internal directories.