MCPcopy
hub / github.com/uber-go/zap / Times

Function Times

array.go:230–232  ·  view source on GitHub ↗

Times constructs a field that carries a slice of time.Times.

(key string, ts []time.Time)

Source from the content-addressed store, hash-verified

228
229// Times constructs a field that carries a slice of time.Times.
230func Times(key string, ts []time.Time) Field {
231 return Array(key, times(ts))
232}
233
234// Uints constructs a field that carries a slice of unsigned integers.
235func Uints(key string, nums []uint) Field {

Callers 3

fakeFieldsFunction · 0.92
TestFieldConstructorsFunction · 0.85
TestArrayWrappersFunction · 0.85

Calls 2

ArrayFunction · 0.85
timesTypeAlias · 0.85

Tested by 3

fakeFieldsFunction · 0.74
TestFieldConstructorsFunction · 0.68
TestArrayWrappersFunction · 0.68