MCPcopy Create free account
hub / github.com/francoispqt/gojay / AddTimeKey

Method AddTimeKey

encode_time.go:29–31  ·  view source on GitHub ↗

AddTimeKey adds an *time.Time to be encoded with the given format, must be used inside an object as it will encode a key

(key string, t *time.Time, format string)

Source from the content-addressed store, hash-verified

27
28// AddTimeKey adds an *time.Time to be encoded with the given format, must be used inside an object as it will encode a key
29func (enc *Encoder) AddTimeKey(key string, t *time.Time, format string) {
30 enc.TimeKey(key, t, format)
31}
32
33// TimeKey adds an *time.Time to be encoded with the given format, must be used inside an object as it will encode a key
34func (enc *Encoder) TimeKey(key string, t *time.Time, format string) {

Callers 1

TestAddTimeKeyFunction · 0.95

Calls 1

TimeKeyMethod · 0.95

Tested by 1

TestAddTimeKeyFunction · 0.76