helper

package
v0.0.0-...-64afd39 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abort

func Abort(errMsg string, errs ...error)

func CheckErr

func CheckErr(errs ...error) bool

func CheckErrThenAbort

func CheckErrThenAbort(errMsg string, errs ...error)

func CheckErrThenLog

func CheckErrThenLog(errMsg string, errs ...error)

func CheckErrThenPanic

func CheckErrThenPanic(errMsg string, errs ...error)

func ConditionalOperator

func ConditionalOperator(condition bool, expr1 func() interface{}, expr2 func() interface{}) interface{}

Expr

func Empty

func Empty(val interface{}) bool

func HttpBuildQuery

func HttpBuildQuery(val interface{}) (string, error)

Url

func Isset

func Isset(arr map[string]interface{}, key string) bool

Type

func LogErr

func LogErr(errMsg string, errs ...error)

func PanicErr

func PanicErr(errMsg string, errs ...error)

Error Handling

func ParseInt

func ParseInt(val interface{}, err error) (int, error)

func ParseStr

func ParseStr(val interface{}, err error) (string, error)

Str

func StrIntval

func StrIntval(str string) (int, error)

Int

Types

This section is empty.

Jump to

Keyboard shortcuts

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