(opts ...Option)
| 30 | } |
| 31 | |
| 32 | func (ec *ErrorContext) CloneErrorContext(opts ...Option) *ErrorContext { |
| 33 | newEc := *ec |
| 34 | return newEc.applyOptions(opts...) |
| 35 | } |
| 36 | |
| 37 | func (ec *ErrorContext) StatusCode() int { |
| 38 | if ec.statusCode <= 0 { |
nothing calls this directly
no test coverage detected