MarshalJSON implements json.Marshaler.
()
| 56 | |
| 57 | // MarshalJSON implements json.Marshaler. |
| 58 | func (d Duration) MarshalJSON() ([]byte, error) { |
| 59 | return json.Marshal(d.Duration.Nanoseconds() / int64(time.Millisecond)) |
| 60 | } |
nothing calls this directly
no outgoing calls
no test coverage detected