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

Method DecodeMsgpack

types_test.go:42–50  ·  view source on GitHub ↗
(dec *msgpack.Decoder)

Source from the content-addressed store, hash-verified

40}
41
42func (t *CustomTime) DecodeMsgpack(dec *msgpack.Decoder) error {
43 var tm time.Time
44 err := dec.Decode(&tm)
45 if err != nil {
46 return err
47 }
48 *t = CustomTime(tm)
49 return nil
50}
51
52//------------------------------------------------------------------------------
53

Callers

nothing calls this directly

Calls 2

CustomTimeTypeAlias · 0.85
DecodeMethod · 0.80

Tested by

no test coverage detected