(bytes []byte)
| 115 | } |
| 116 | |
| 117 | func (d *DynamicRelease) UnmarshalJSON(bytes []byte) error { |
| 118 | basicInfo := new(BasicItem) |
| 119 | err := json.Unmarshal(bytes, basicInfo) |
| 120 | if err != nil { |
| 121 | return err |
| 122 | } |
| 123 | tmp := make(map[string]interface{}) |
| 124 | err = json.Unmarshal(bytes, &tmp) |
| 125 | if err != nil { |
| 126 | return err |
| 127 | } |
| 128 | d.BasicItem = basicInfo |
| 129 | d.Attr = tmp |
| 130 | return nil |
| 131 | } |
| 132 | |
| 133 | type ServiceRelease struct { |
| 134 | ID string |
nothing calls this directly
no outgoing calls
no test coverage detected