utils

package
v0.0.0-...-b8b9e6a Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2023 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultDuration

func DefaultDuration(val time.Duration, defaultVal time.Duration) time.Duration

DefaultDuration return defaultVal if val is empty fpr time.Duration

func DefaultInt

func DefaultInt(val int, defaultVal int) int

DefaultInt return defaultVal if val is empty

func DefaultInterface

func DefaultInterface(val interface{}, defaultVal interface{}) interface{}

DefaultInterface return defaultVal if val is empty

func DefaultString

func DefaultString(val string, defaultVal string) string

DefaultString return defaultVal if val is empty

func Errs

func Errs(errs ...error) []error

Errs forms []error from errors...

func LoadEnv

func LoadEnv(env string)

LoadEnv loads

func RangeLen

func RangeLen(i interface{}) int

RangeLen returns length of interface{}

func StructName

func StructName(strct interface{}) string

StructName returns name of structure

Types

This section is empty.

Jump to

Keyboard shortcuts

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