Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/vmihailenco/msgpack
/ EncodeDuration
Method
EncodeDuration
encode.go:254–256 ·
view source on GitHub ↗
(d time.Duration)
Source
from the content-addressed store, hash-verified
252
}
253
254
func
(e *Encoder) EncodeDuration(d time.Duration) error {
255
return
e.EncodeInt(int64(d))
256
}
257
258
func
(e *Encoder) writeCode(c byte) error {
259
return
e.w.WriteByte(c)
Callers
nothing calls this directly
Calls
1
EncodeInt
Method · 0.95
Tested by
no test coverage detected