gutil

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: MIT Imports: 7 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckErr

func CheckErr(err error) bool

CheckErr print error with stack context and return true for error else false.

func CmpExpectedGot

func CmpExpectedGot(t *testing.T, key, expI, gotI interface{})

func ExitOnErr

func ExitOnErr(err error)

ExitOnErr print fatal error with stack context and exit.

func RandChoice

func RandChoice(objs []interface{}) interface{}

func Struct2map

func Struct2map(obj interface{}) *map[string]interface{}

Struct2map converts object from a struct into a map for use in gsql.

Types

This section is empty.

Jump to

Keyboard shortcuts

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