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.
| 115 | // |
| 116 | // May be passed in place of an array to build a single-element array. |
| 117 | type errArrayElem struct{ err error } |
| 118 | |
| 119 | func newErrArrayElem(err error) *errArrayElem { |
| 120 | e := _errArrayElemPool.Get() |
nothing calls this directly
no outgoing calls
no test coverage detected