utils

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogIfError added in v0.4.0

func LogIfError(err error)

LogIfError wraps the err nil check to cleanup the code. Logs at Error level

func LogIfFatal added in v0.4.0

func LogIfFatal(err error)

LogIfFatal wraps the err nil check to cleanup the code. Logs at Fatal level

func StructToMap

func StructToMap(item interface{}, fields []string) map[string]interface{}

Types

type StructToMapCallback

type StructToMapCallback func(item interface{}, fields []string) map[string]interface{}

Jump to

Keyboard shortcuts

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