json

package
v0.0.0-...-cc6de57 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: Apache-2.0 Imports: 4 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsJson

func AsJson(data []byte, err error) (map[string]interface{}, error)

func AsJsonList

func AsJsonList(data []byte, err error) ([]interface{}, error)

func L

func L(data interface{}) []interface{}

func Limit

func Limit(str string, limit int) string

func M

func M(data interface{}, keys ...string) interface{}

func MB

func MB(data interface{}, keys ...string) bool

func MBS

func MBS(data interface{}, keys ...string) string

func ME

func ME(layout string, data interface{}, keys ...string) int64

return value as a timestamp (milliseconds) epoch

func MEP

func MEP(layout string, data interface{}, keys ...string) *int64

Return value as pointer to a timestamp (milliseconds) epoch

func MN

func MN(data interface{}, keys ...string) int

func MN32

func MN32(data interface{}, keys ...string) int32

func MN64

func MN64(data interface{}, keys ...string) int64

func MNS

func MNS(data interface{}, keys ...string) string

return number value as a string

func MS

func MS(data interface{}, keys ...string) string

func MSP

func MSP(data interface{}, keys ...string) *string

return value as a string pointer (optional)

func Nilsafe

func Nilsafe(data interface{}) interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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