UnmarshalJSON implements json.Unmarshaler.
(b []byte)
| 83 | |
| 84 | // UnmarshalJSON implements json.Unmarshaler. |
| 85 | func (s *SamplePair) UnmarshalJSON(b []byte) error { |
| 86 | v := [...]json.Unmarshaler{&s.Timestamp, &s.Value} |
| 87 | return json.Unmarshal(b, &v) |
| 88 | } |
| 89 | |
| 90 | // Equal returns true if this SamplePair and o have equal Values and equal |
| 91 | // Timestamps. The semantics of Value equality is defined by SampleValue.Equal. |
nothing calls this directly
no outgoing calls
no test coverage detected