package
0.0.0-20210718062109-496be73d0ac7
Repository: https://github.com/piyuo/libsrv.git
Documentation: pkg.go.dev

# Functions

FromString convert key value pair string to map m2 := FromString(s) .
GetBool get bool value from map, return default value if not exist str := GetFloat64(Map,0) .
GetFloat64 get float64 value from map, return default value if not exist str := GetFloat64(Map,0) .
GetMap get string value from map, return default value if not exist m := GetMap(Map,"submap") .
GetString get string value from map, return default value if not exist str := GetString(Map,"hello") .
GetTime get time value from map, return default value if not exist or wrong time type str := MapGetFloat64(Map,time.Now()) .
Insert insert json object to array .
ToString convert map to string using key value pair m := map[string]interface{}{ "a": "1", "b": "2", } s := ToString(m) .