Documentation ¶
Index ¶
- func AtoI(s string) int
- func Coalesce(v ...interface{}) interface{}
- func IsFile(path string) bool
- func Mkdir(path string)
- func PrintDirTree(root string) error
- func QuotedList(l interface{}, separator string) string
- func ReadDir(path string) []os.FileInfo
- func ReadYaml(path string, target interface{})
- func ResolveLink(path string) string
- func SafeMatch(s interface{}, re string) bool
- func SafeReplaceAllString(s interface{}, re string, replacement string) string
- func SafeToLower(s interface{}) string
- func SafeValue(s interface{}) string
- func Sequence(start, length int) []int
- func SlurpFile(path string) []byte
- func SlurpFileAsLines(path string) []string
- func SupressLogForTest(t *testing.T, l *log.Logger) func()
- func TimeOffset(seed string) int
- func ToString(i interface{}) string
- func Touch(path string)
- func WriteFile(path string, content []byte)
- func WriteYaml(path string, source interface{})
- type AnyMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Coalesce ¶
func Coalesce(v ...interface{}) interface{}
For the list of arguments, return first that is not undefined (nil)
func PrintDirTree ¶
func QuotedList ¶
Splits given string on separator, and joins the bits quoted with "". A half-hearted attempt, no escaping.
func ResolveLink ¶
func SafeReplaceAllString ¶
func SafeToLower ¶
func SafeToLower(s interface{}) string
func SlurpFileAsLines ¶
func TimeOffset ¶
Give a number between 0 and 60 that somehow represents the given string. seed is not seed at all.
Types ¶
Click to show internal directories.
Click to hide internal directories.