Documentation
¶
Index ¶
- func FormatDateTime(t time.Time) string
- func LogError(err error, message string)
- func LogWarning(err error, message string)
- func Timestamp(time time.Time) string
- func ViperBool(flag string) *bool
- func ViperInt(flag string) *int
- func ViperMapKeyValuePair(flag string) (string, string, error)
- func ViperString(flag string) *string
- func ViperStringSlice(flag string) []string
- func ViperStringSliceMap(flag string) (map[string]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogError ¶
LogError logs err at ERROR level via the structured logger, prints a coloured message to stdout, then calls log.Fatalln to exit.
func LogWarning ¶
LogWarning logs err at WARN level via the structured logger and prints a coloured warning to stdout. Execution continues after this call.
func ViperString ¶
func ViperStringSlice ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.