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

Method AppendFloat32

zapcore/json_encoder.go:335–335  ·  view source on GitHub ↗
(v float32)

Source from the content-addressed store, hash-verified

333func (enc *jsonEncoder) AppendComplex128(v complex128) { enc.appendComplex(complex128(v), 64) }
334func (enc *jsonEncoder) AppendFloat64(v float64) { enc.appendFloat(v, 64) }
335func (enc *jsonEncoder) AppendFloat32(v float32) { enc.appendFloat(float64(v), 32) }
336func (enc *jsonEncoder) AppendInt(v int) { enc.AppendInt64(int64(v)) }
337func (enc *jsonEncoder) AppendInt32(v int32) { enc.AppendInt64(int64(v)) }
338func (enc *jsonEncoder) AppendInt16(v int16) { enc.AppendInt64(int64(v)) }

Callers 1

AddFloat32Method · 0.95

Calls 1

appendFloatMethod · 0.95

Tested by

no test coverage detected