This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var newLine = []byte("\n")[0] | |
| var goPathPrefix = "\t/go/src/" | |
| var goUsersPrefix = "\t/Users/" | |
| func dumpStacktrace(skipLines int) []byte { | |
| stack := debug.Stack() | |
| init, lines := 0, 0 | |
| // First pass: seek stack start skiping lines if necessary | |
| if skipLines > 0 { |