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

Struct errArrayElem

zapcore/error.go:117–117  ·  zapcore/error.go::errArrayElem

Encodes any error into a {"error": ...} re-using the same errors logic. May be passed in place of an array to build a single-element array.

Source from the content-addressed store, hash-verified

115//
116// May be passed in place of an array to build a single-element array.
117type errArrayElem struct{ err error }
118
119func newErrArrayElem(err error) *errArrayElem {
120 e := _errArrayElemPool.Get()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected