helpers

package
v0.0.0-...-e249f0d Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(input interface{}, output interface{}) error

Decode create a new hook in the mapstructure pkg for the decoder config. Especially used to map a string to a time.Time type.

func DieOnError

func DieOnError(msg string, err error)

DieOnError checks if an error is nil and log fatal error message otherwise

func ParseStringToUint64

func ParseStringToUint64(str string) uint64

ParseStringToUint64 pretty self explanatory. Especially used for query param conversion.

Types

This section is empty.

Jump to

Keyboard shortcuts

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