MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / NewStructMapFromJSON

Function NewStructMapFromJSON

projects/Go/proto/test/StructMap.go:74–81  ·  view source on GitHub ↗

Create a new StructMap struct from JSON

(buffer []byte)

Source from the content-addressed store, hash-verified

72
73// Create a new StructMap struct from JSON
74func NewStructMapFromJSON(buffer []byte) (*StructMap, error) {
75 result := *NewStructMap()
76 err := fbe.Json.Unmarshal(buffer, &result)
77 if err != nil {
78 return nil, err
79 }
80 return &result, nil
81}
82
83// Struct shallow copy
84func (s *StructMap) Copy() *StructMap {

Callers

nothing calls this directly

Calls 1

NewStructMapFunction · 0.85

Tested by

no test coverage detected