Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEnvOrDefault ¶
GetEnvOrDefault returns the first non-empty environment variable
func Interpolate ¶
Interpolate templatises the string using the vars as the context
func InterpolateStrings ¶
InterpolateStrings templatises each string in the slice using the vars as the context
func RandomString ¶
RandomString returns a random string consisting of the characters in randomChars, with the length customized by the parameter
func ShortTimestamp ¶
func ShortTimestamp() string
ShortTimestamp returns a shortened timestamp using week of year + day of week to represent a day of the e.g. 1st of Jan on a Tuesday is 13
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.