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

Function NewStructListFromJSON

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

Create a new StructList struct from JSON

(buffer []byte)

Source from the content-addressed store, hash-verified

72
73// Create a new StructList struct from JSON
74func NewStructListFromJSON(buffer []byte) (*StructList, error) {
75 result := *NewStructList()
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 *StructList) Copy() *StructList {

Callers

nothing calls this directly

Calls 1

NewStructListFunction · 0.85

Tested by

no test coverage detected