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

Function NewStructSetFromJSON

projects/Go/proto/test/StructSet.go:62–69  ·  view source on GitHub ↗

Create a new StructSet struct from JSON

(buffer []byte)

Source from the content-addressed store, hash-verified

60
61// Create a new StructSet struct from JSON
62func NewStructSetFromJSON(buffer []byte) (*StructSet, error) {
63 result := *NewStructSet()
64 err := fbe.Json.Unmarshal(buffer, &result)
65 if err != nil {
66 return nil, err
67 }
68 return &result, nil
69}
70
71// Struct shallow copy
72func (s *StructSet) Copy() *StructSet {

Callers

nothing calls this directly

Calls 1

NewStructSetFunction · 0.85

Tested by

no test coverage detected