MCPcopy Create free account
hub / github.com/cppla/moto / TimeEncoder

Function TimeEncoder

utils/log.go:76–78  ·  view source on GitHub ↗
(t time.Time, enc zapcore.PrimitiveArrayEncoder)

Source from the content-addressed store, hash-verified

74}
75
76func appendTimeInLocation(t time.Time, location *time.Location, enc zapcore.PrimitiveArrayEncoder) {
77 enc.AppendString(t.In(location).Format(logTimeLayout))
78}
79
80// optional helpers for structured fields (used in some modules)
81func ZapString(k, v string) zap.Field { return zap.String(k, v) }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected