Documentation ¶
Index ¶
- func ErrorExit(msg interface{})
- func JSON(v interface{}) string
- func JSONLog(v interface{})
- func JSONPrint(v interface{})
- func Mustenv(names ...string)
- func StrToInt64(s string) int64
- func StringInSlice(str string, slice []string) bool
- func StringInStrings(str string, args ...string) bool
- type Message
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorExit ¶
func ErrorExit(msg interface{})
ErrorExit displays an error before exiting. Use this from a CLI command.
func Mustenv ¶
func Mustenv(names ...string)
Mustenv ensures an environment variable is set and panics if it is not.
func StringInSlice ¶
StringInSlice return true if the string is found in the list.
func StringInStrings ¶
StringInStrings returns true if the string matches a string.
Types ¶
Click to show internal directories.
Click to hide internal directories.