util

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetArr

func GetArr(field string, data map[string]interface{}) []interface{}

func GetBool

func GetBool(field string, data map[string]interface{}, defVal ...bool) bool

func GetFloat

func GetFloat(field string, data map[string]interface{}, defVal ...float64) float64

func GetInt

func GetInt(field string, data map[string]interface{}, defVal ...int) int

func GetMap

func GetMap(field string, data map[string]interface{}) map[string]interface{}

func GetString

func GetString(field string, data map[string]interface{}, defVal ...string) string

func PrettyPrint

func PrettyPrint(obj interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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