UnmarshalJSON implements json.Unmarshaler.
(b []byte)
| 295 | |
| 296 | // UnmarshalJSON implements json.Unmarshaler. |
| 297 | func (s *String) UnmarshalJSON(b []byte) error { |
| 298 | v := [...]interface{}{&s.Timestamp, &s.Value} |
| 299 | return json.Unmarshal(b, &v) |
| 300 | } |
| 301 | |
| 302 | // Vector is basically only an alias for Samples, but the |
| 303 | // contract is that in a Vector, all Samples have the same timestamp. |
nothing calls this directly
no outgoing calls
no test coverage detected