(opts ...Option)
| 82 | } |
| 83 | |
| 84 | func (ec *ErrorContext) applyOptions(opts ...Option) *ErrorContext { |
| 85 | for _, opt := range opts { |
| 86 | opt(ec) |
| 87 | } |
| 88 | |
| 89 | return ec |
| 90 | } |
| 91 | |
| 92 | // callers returns the stack trace, skipping the specified number of frames. |
| 93 | func callers(skip int) []uintptr { |
no outgoing calls
no test coverage detected