MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / StrToMap

Function StrToMap

common/str.go:35–42  ·  view source on GitHub ↗
(str string)

Source from the content-addressed store, hash-verified

33}
34
35func StrToMap(str string) (map[string]interface{}, error) {
36 m := make(map[string]interface{})
37 err := Unmarshal([]byte(str), &m)
38 if err != nil {
39 return nil, err
40 }
41 return m, nil
42}
43
44func StrToJsonArray(str string) ([]interface{}, error) {
45 var js []interface{}

Callers 3

validateChannelFunction · 0.92
formatUserLogsFunction · 0.92
GetModelRegionFunction · 0.92

Calls 1

UnmarshalFunction · 0.85

Tested by

no test coverage detected