Create a new StructList struct from JSON
(buffer []byte)
| 72 | |
| 73 | // Create a new StructList struct from JSON |
| 74 | func 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 |
| 84 | func (s *StructList) Copy() *StructList { |
nothing calls this directly
no test coverage detected