helper

package
v0.0.0-...-1f4b2c2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MPL-2.0 Imports: 7 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)

Centralize error handing, simple print message and exit

func LogWarning

func LogWarning(err error, message string)

Warning but dont exit

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