Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var NotImplementedError = errors.New("not implemented yet")
Functions ¶
func Glob ¶ added in v0.2.4
Glob will test a string pattern, potentially containing globs, against a subject string. The result is a simple true/false, determining whether or not the glob pattern matched the subject text.
Adapted from https://github.com/ryanuber/go-glob/blob/master/glob.go thanks Ryan Uber!
func ReadLines ¶
ReadLines reads contents from a file and splits them by new lines. A convenience wrapper to ReadLinesOffsetN(filename, 0, -1).
func ReadLinesOffsetN ¶
ReadLines reads contents from file and splits them by new line. The offset tells at which line number to start. The count determines the number of lines to read (starting from offset):
n >= 0: at most n lines n < 0: whole file
Types ¶
type Duration ¶
Duration just wraps time.Duration
func (*Duration) UnmarshalTOML ¶
UnmarshalTOML parses the duration from the TOML config file
type JSONFlattener ¶ added in v0.10.0
type JSONFlattener struct {
Fields map[string]interface{}
}
func (*JSONFlattener) FlattenJSON ¶ added in v0.10.0
func (f *JSONFlattener) FlattenJSON( fieldname string, v interface{}, ) error
FlattenJSON flattens nested maps/interfaces into a fields map