UnmarshalJSON implements json.Unmarshaler.
(b []byte)
| 274 | |
| 275 | // UnmarshalJSON implements json.Unmarshaler. |
| 276 | func (s *String) UnmarshalJSON(b []byte) error { |
| 277 | v := [...]any{&s.Timestamp, &s.Value} |
| 278 | return json.Unmarshal(b, &v) |
| 279 | } |
| 280 | |
| 281 | // Vector is basically only an alias for Samples, but the |
| 282 | // contract is that in a Vector, all Samples have the same timestamp. |
nothing calls this directly
no outgoing calls
no test coverage detected