Error iterator always returns a single error with no other results.
| 111 | |
| 112 | // Error iterator always returns a single error with no other results. |
| 113 | type Error struct { |
| 114 | err error |
| 115 | } |
| 116 | |
| 117 | func NewError(err error) *Error { |
| 118 | return &Error{err: err} |