util

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(err error)

func CheckAndPanic

func CheckAndPanic(err error)

func CheckNil added in v0.2.0

func CheckNil(obj interface{})

func ImportJsonOrYaml added in v0.2.2

func ImportJsonOrYaml(jsonStr string) []interface{}

func SyncMapDelete added in v0.2.2

func SyncMapDelete(m *sync.Map, k string)

func SyncMapExists added in v0.2.2

func SyncMapExists(m *sync.Map, k string) bool

func SyncMapGetString added in v0.2.2

func SyncMapGetString(m *sync.Map, k string) string

func SyncMapSet added in v0.2.2

func SyncMapSet(m *sync.Map, k string, v interface{})

func ToJson added in v0.2.0

func ToJson(obj interface{}) []byte

func TrimVersion added in v0.2.0

func TrimVersion(version string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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