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

Function Int8p

field.go:214–219  ·  view source on GitHub ↗

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

(key string, val *int8)

Source from the content-addressed store, hash-verified

212// Int8p constructs a field that carries a *int8. The returned Field will safely
213// and explicitly represent `nil` when appropriate.
214func Int8p(key string, val *int8) Field {
215 if val == nil {
216 return nilField(key)
217 }
218 return Int8(key, *val)
219}
220
221// String constructs a field with the given key and value.
222func String(key string, val string) Field {

Callers 1

TestFieldConstructorsFunction · 0.85

Calls 2

nilFieldFunction · 0.85
Int8Function · 0.85

Tested by 1

TestFieldConstructorsFunction · 0.68