MCPcopy
hub / github.com/rs/zerolog / Type

Method Type

array.go:273–276  ·  view source on GitHub ↗

Type adds the val's type using reflection to the array.

(val interface{})

Source from the content-addressed store, hash-verified

271
272// Type adds the val's type using reflection to the array.
273func (a *Array) Type(val interface{}) *Array {
274 a.buf = enc.AppendType(enc.AppendArrayDelim(a.buf), val)
275 return a
276}

Callers

nothing calls this directly

Calls 2

AppendArrayDelimMethod · 0.65
AppendTypeMethod · 0.45

Tested by

no test coverage detected