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

Function Complex64

field.go:106–108  ·  view source on GitHub ↗

Complex64 constructs a field that carries a complex number. Unlike most numeric fields, this costs an allocation (to convert the complex64 to interface{}).

(key string, val complex64)

Source from the content-addressed store, hash-verified

104// numeric fields, this costs an allocation (to convert the complex64 to
105// interface{}).
106func Complex64(key string, val complex64) Field {
107 return Field{Key: key, Type: zapcore.Complex64Type, Interface: val}
108}
109
110// Complex64p constructs a field that carries a *complex64. The returned Field will safely
111// and explicitly represent `nil` when appropriate.

Callers 2

TestFieldConstructorsFunction · 0.85
Complex64pFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestFieldConstructorsFunction · 0.68