Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InfoReader ¶
type InfoReader struct {
// contains filtered or unexported fields
}
func NewInfoWriter ¶
func NewInfoWriter(msg string, out io.Writer) *InfoReader
type OutputConfig ¶
type OutputConfig struct { Nonmatch TextMutator ResolvedMatch TextMutator UnresolvableMatch TextMutator Result TextMutator }
type ResolverFunc ¶
func MakeResolver ¶
func MakeResolver(out OutputConfig) ResolverFunc
type TextMutator ¶
TextMutator changes a given string
func Chain ¶
func Chain(mfuncs ...TextMutator) TextMutator
Chain returns a new TextMutator that applies all given TextMutator functions in order
func GenHighlighter ¶
func GenHighlighter(attr ...color.Attribute) TextMutator
GenHighlighter returns a new TextMutator that colorizes the input string
func GenQuoter ¶
func GenQuoter(before, after string) TextMutator
GenQuoter returns a new TextMutator that surrounds the input string with custom strings
Click to show internal directories.
Click to hide internal directories.