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

Function Complex64p

field.go:112–117  ·  view source on GitHub ↗

Complex64p constructs a field that carries a *complex64. The returned Field will safely and explicitly represent `nil` when appropriate.

(key string, val *complex64)

Source from the content-addressed store, hash-verified

110// Complex64p constructs a field that carries a *complex64. The returned Field will safely
111// and explicitly represent `nil` when appropriate.
112func Complex64p(key string, val *complex64) Field {
113 if val == nil {
114 return nilField(key)
115 }
116 return Complex64(key, *val)
117}
118
119// Float64 constructs a field that carries a float64. The way the
120// floating-point value is represented is encoder-dependent, so marshaling is

Callers 1

TestFieldConstructorsFunction · 0.85

Calls 2

nilFieldFunction · 0.85
Complex64Function · 0.85

Tested by 1

TestFieldConstructorsFunction · 0.68