MCPcopy Create free account
hub / github.com/chain/txvm / MarshalJSON

Method MarshalJSON

encoding/json/duration.go:58–60  ·  view source on GitHub ↗

MarshalJSON implements json.Marshaler.

()

Source from the content-addressed store, hash-verified

56
57// MarshalJSON implements json.Marshaler.
58func (d Duration) MarshalJSON() ([]byte, error) {
59 return json.Marshal(d.Duration.Nanoseconds() / int64(time.Millisecond))
60}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected