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

Method Type

context.go:445–448  ·  view source on GitHub ↗

Type adds the field key with val's type using reflection.

(key string, val interface{})

Source from the content-addressed store, hash-verified

443
444// Type adds the field key with val's type using reflection.
445func (c Context) Type(key string, val interface{}) Context {
446 c.l.context = enc.AppendType(enc.AppendKey(c.l.context, key), val)
447 return c
448}
449
450// Any is a wrapper around Context.Interface.
451func (c Context) Any(key string, i interface{}) Context {

Callers

nothing calls this directly

Calls 2

AppendKeyMethod · 0.65
AppendTypeMethod · 0.45

Tested by

no test coverage detected