MCPcopy Index your code
hub / github.com/vmihailenco/msgpack / DecodeDuration

Method DecodeDuration

decode.go:379–385  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

377}
378
379func (d *Decoder) DecodeDuration() (time.Duration, error) {
380 n, err := d.DecodeInt64()
381 if err != nil {
382 return 0, err
383 }
384 return time.Duration(n), nil
385}
386
387// DecodeInterface decodes value into interface. It returns following types:
388// - nil,

Callers

nothing calls this directly

Calls 1

DecodeInt64Method · 0.95

Tested by

no test coverage detected