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

Method AddUint16

zapcore/json_encoder.go:329–329  ·  view source on GitHub ↗
(k string, v uint16)

Source from the content-addressed store, hash-verified

327func (enc *jsonEncoder) AddUint(k string, v uint) { enc.AddUint64(k, uint64(v)) }
328func (enc *jsonEncoder) AddUint32(k string, v uint32) { enc.AddUint64(k, uint64(v)) }
329func (enc *jsonEncoder) AddUint16(k string, v uint16) { enc.AddUint64(k, uint64(v)) }
330func (enc *jsonEncoder) AddUint8(k string, v uint8) { enc.AddUint64(k, uint64(v)) }
331func (enc *jsonEncoder) AddUintptr(k string, v uintptr) { enc.AddUint64(k, uint64(v)) }
332func (enc *jsonEncoder) AppendComplex64(v complex64) { enc.appendComplex(complex128(v), 32) }

Callers

nothing calls this directly

Calls 1

AddUint64Method · 0.95

Tested by

no test coverage detected