newOutputWriter returns an io.Writer that will intercept panic addresses and will try to insert a source location in the output if the source location can be found in the executable.
(out io.Writer, executable string)
| 394 | // will try to insert a source location in the output if the source location can |
| 395 | // be found in the executable. |
| 396 | func newOutputWriter(out io.Writer, executable string) *outputWriter { |
| 397 | return &outputWriter{ |
| 398 | out: out, |
| 399 | executable: executable, |
| 400 | } |
| 401 | } |
| 402 | |
| 403 | func (w *outputWriter) Write(p []byte) (n int, err error) { |
| 404 | start := 0 |
no outgoing calls
no test coverage detected