Documentation ¶
Index ¶
- Variables
- func ColorsFromLabel(label string) (color.Style, error)
- func DirExists(path string) bool
- func ExeDirectory() string
- func ExpandPath(path string) string
- func ExtractFromMap(m map[string]interface{}, key string) interface{}
- func ExtractStringSliceFromMap(m map[string]interface{}, key string) ([]string, error)
- func FileExists(path string) bool
- func FileStat(path string, ensureExists bool) os.FileInfo
- func MkdirAll(path string)
- func MustStringSlice(raw interface{}) ([]string, error)
- func ReadFile(path string) []byte
- func RemoveDir(path string)
- func RemoveFile(path string)
- func ReplaceFile(path string, content []byte)
- func ToBool(v interface{}) bool
- func UnmashalYAMLAgain(in interface{}, out interface{}) error
- func WriteFileIfNotFound(path string, content []byte)
- type AnyValue
- type AnyValueT
- type Color
- func (i Color) MarshalYAML() (interface{}, error)
- func (i Color) Reset()
- func (i Color) Set(label string)
- func (i Color) Sprint(a interface{}) string
- func (i Color) Sprintf(format string, a ...interface{}) string
- func (i Color) String() string
- func (i Color) UnmarshalYAML(unmarshal func(interface{}) error) error
- type ColorT
- type LogFile
- type LogFileT
- type MultiString
- func (i MultiString) Contains(v string, caseSensitive bool) bool
- func (i MultiString) MarshalYAML() (interface{}, error)
- func (i MultiString) Reset()
- func (i MultiString) Set(valuesText string)
- func (i MultiString) String() string
- func (i MultiString) UnmarshalYAML(unmarshal func(interface{}) error) error
- type MultiStringT
- type Printable
- type TailQueue
- type TailQueueT
Constants ¶
This section is empty.
Variables ¶
View Source
var Colors = map[string]color.Color{ "FgBlack": color.FgBlack, "FgRed": color.FgRed, "FgGreen": color.FgGreen, "FgYellow": color.FgYellow, "FgBlue": color.FgBlue, "FgMagenta": color.FgMagenta, "FgCyan": color.FgCyan, "FgWhite": color.FgWhite, "FgDefault": color.FgDefault, "FgDarkGray": color.FgDarkGray, "FgLightRed": color.FgLightRed, "FgLightGreen": color.FgLightGreen, "FgLightYellow": color.FgLightYellow, "FgLightBlue": color.FgLightBlue, "FgLightMagenta": color.FgLightMagenta, "FgLightCyan": color.FgLightCyan, "FgLightWhite": color.FgLightWhite, "FgGray": color.FgGray, "BgBlack": color.BgBlack, "BgRed": color.BgRed, "BgGreen": color.BgGreen, "BgYellow": color.BgYellow, "BgBlue": color.BgBlue, "BgMagenta": color.BgMagenta, "BgCyan": color.BgCyan, "BgWhite": color.BgWhite, "BgDefault": color.BgDefault, "BgDarkGray": color.BgDarkGray, "BgLightRed": color.BgLightRed, "BgLightGreen": color.BgLightGreen, "BgLightYellow": color.BgLightYellow, "BgLightBlue": color.BgLightBlue, "BgLightMagenta": color.BgLightMagenta, "BgLightCyan": color.BgLightCyan, "BgLightWhite": color.BgLightWhite, "BgGray": color.BgGray, "OpReset": color.OpReset, "OpBold": color.OpBold, "OpFuzzy": color.OpFuzzy, "OpItalic": color.OpItalic, "OpUnderscore": color.OpUnderscore, "OpBlink": color.OpBlink, "OpFastBlink": color.OpFastBlink, "OpReverse": color.OpReverse, "OpConcealed": color.OpConcealed, "OpStrikethrough": color.OpStrikethrough, "Red": color.Red, "Cyan": color.Cyan, "Gray": color.Gray, "Blue": color.Blue, "Black": color.Black, "Green": color.Green, "White": color.White, "Yellow": color.Yellow, "Magenta": color.Magenta, "Bold": color.Bold, "Normal": color.Normal, "LightRed": color.LightRed, "LightCyan": color.LightCyan, "LightBlue": color.LightBlue, "LightGreen": color.LightGreen, "LightWhite": color.LightWhite, "LightYellow": color.LightYellow, "LightMagenta": color.LightMagenta, }
Colors ...
Functions ¶
func ExtractFromMap ¶
ExtractFromMap ...
func ExtractStringSliceFromMap ¶ added in v1.0.3
ExtractStringSliceFromMap ...
func MustStringSlice ¶ added in v1.0.3
MustStringSlice ...
func UnmashalYAMLAgain ¶
func UnmashalYAMLAgain(in interface{}, out interface{}) error
UnmashalYAMLAgain ...
func WriteFileIfNotFound ¶ added in v1.0.3
WriteFileIfNotFound ...
Types ¶
type AnyValue ¶ added in v0.9.12
type AnyValue = *AnyValueT
AnyValue ...
func AnyValueFromRaw ¶ added in v0.9.12
AnyValueFromRaw ...
type AnyValueT ¶ added in v0.9.12
type AnyValueT struct { Raw interface{} Text string }
AnyValueT ...
type Color ¶
type Color = *ColorT
Color ...
func (Color) UnmarshalYAML ¶
UnmarshalYAML ...
type ColorT ¶
type ColorT struct { yaml.Unmarshaler yaml.Marshaler // contains filtered or unexported fields }
ColorT ...
type LogFileT ¶
type LogFileT struct {
// contains filtered or unexported fields
}
LogFileT implements io.Writer
type MultiString ¶ added in v0.9.17
type MultiString = *MultiStringT
MultiString ...
func (MultiString) Contains ¶ added in v0.9.17
func (i MultiString) Contains(v string, caseSensitive bool) bool
Contains ...
func (MultiString) MarshalYAML ¶ added in v0.9.17
func (i MultiString) MarshalYAML() (interface{}, error)
MarshalYAML ...
func (MultiString) String ¶ added in v0.9.17
func (i MultiString) String() string
func (MultiString) UnmarshalYAML ¶ added in v0.9.17
func (i MultiString) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML ...
type MultiStringT ¶ added in v0.9.17
type MultiStringT struct { yaml.Unmarshaler yaml.Marshaler Text string Values map[string]bool LowercasedValues map[string]bool }
MultiStringT ...
type Printable ¶ added in v0.9.12
type Printable interface { IsEnabled() bool GetColor(value string) Color PrintTo(color Color, builder *strings.Builder, a string) }
Printable ...
type TailQueueT ¶ added in v0.9.12
type TailQueueT struct {
// contains filtered or unexported fields
}
TailQueueT ...
Click to show internal directories.
Click to hide internal directories.