MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / EncodeDuration

Function EncodeDuration

pkg/settings/updater.go:28–30  ·  view source on GitHub ↗

EncodeDuration encodes a duration in the format of EncodedValue.Value.

(d time.Duration)

Source from the content-addressed store, hash-verified

26
27// EncodeDuration encodes a duration in the format of EncodedValue.Value.
28func EncodeDuration(d time.Duration) string {
29 return d.String()
30}
31
32// EncodeBool encodes a bool in the format of EncodedValue.Value.
33func EncodeBool(b bool) string {

Callers 3

StringMethod · 0.85
DefaultStringMethod · 0.85
EncodedDefaultMethod · 0.85

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…