Documentation
¶
Index ¶
- func LineToSlice(s string) []string
- func MergeMap(data map[string]string, resultTo interface{}) error
- func PatternLineToSlice(patterns map[string]string, s string) []string
- func SendToSocket(socket string, command string) error
- func SizeSuffixToInt64(size string) (int64, error)
- func Split(s, sep string) []string
- func SplitHeaderNameValue(header string) (name, value string, err error)
- type Tick
- type Timer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LineToSlice ¶ added in v0.8.1
LineToSlice converts POSIX line breaks to a string slice
func PatternLineToSlice ¶ added in v0.16.0
PatternLineToSlice converts POSIX line breaks to a string slice, and replaces patterns found in the source string to the resulting slice.
func SendToSocket ¶
SendToSocket send strings to a unix socket specified
func SizeSuffixToInt64 ¶
SizeSuffixToInt64 converts a size in string format with suffix into int64
func Split ¶ added in v0.8.1
Split returns a slice of substrings from s, separated by sep. If s is empty, Split returns an empty slice. Split will also TrimSpace() all resulting substrings.
func SplitHeaderNameValue ¶ added in v0.15.0
SplitHeaderNameValue splits a header line declaration into header name and value. Note that name and value might be empty for an empty input.
Types ¶
Click to show internal directories.
Click to hide internal directories.