DecodeTimeValue decodes a value encoded by EncodeTimeValue.
(b []byte)
| 2133 | |
| 2134 | // DecodeTimeValue decodes a value encoded by EncodeTimeValue. |
| 2135 | func DecodeTimeValue(b []byte) (remaining []byte, t time.Time, err error) { |
| 2136 | b, err = decodeValueTypeAssert(b, Time) |
| 2137 | if err != nil { |
| 2138 | return b, time.Time{}, err |
| 2139 | } |
| 2140 | return DecodeUntaggedTimeValue(b) |
| 2141 | } |
| 2142 | |
| 2143 | // DecodeUntaggedTimeValue decodes a value encoded by EncodeUntaggedTimeValue. |
| 2144 | func DecodeUntaggedTimeValue(b []byte) (remaining []byte, t time.Time, err error) { |
no test coverage detected
searching dependent graphs…