helper

package
v0.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2026 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatDateTime

func FormatDateTime(t time.Time) string

Format date consistently

func LogError

func LogError(err error, message string)

LogError logs err at ERROR level via the structured logger, prints a coloured message to stdout, then calls log.Fatalln to exit.

func LogWarning

func LogWarning(err error, message string)

LogWarning logs err at WARN level via the structured logger and prints a coloured warning to stdout. Execution continues after this call.

func Timestamp

func Timestamp(time time.Time) string

func ViperBool

func ViperBool(flag string) *bool

func ViperInt

func ViperInt(flag string) *int

func ViperMapKeyValuePair

func ViperMapKeyValuePair(flag string) (string, string, error)

func ViperString

func ViperString(flag string) *string

func ViperStringSlice

func ViperStringSlice(flag string) []string

func ViperStringSliceMap

func ViperStringSliceMap(flag string) (map[string]string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL