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

Struct Duration

encoding/json/duration.go:13–15  ·  view source on GitHub ↗

Duration is a time.Duration with JSON unmarshaling that uses time.ParseDuration.

Source from the content-addressed store, hash-verified

11// Duration is a time.Duration with JSON unmarshaling that uses
12// time.ParseDuration.
13type Duration struct {
14 time.Duration
15}
16
17// UnmarshalJSON fulfills the encoding/json.Unmarshaler interface.
18// It attempts to parse text as a time.Duration string.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected