MarshalJSON implements json.Marshaler.
()
| 269 | |
| 270 | // MarshalJSON implements json.Marshaler. |
| 271 | func (s String) MarshalJSON() ([]byte, error) { |
| 272 | return json.Marshal([]any{s.Timestamp, s.Value}) |
| 273 | } |
| 274 | |
| 275 | // UnmarshalJSON implements json.Unmarshaler. |
| 276 | func (s *String) UnmarshalJSON(b []byte) error { |
nothing calls this directly
no outgoing calls
no test coverage detected