Tags: jangocheng/panicparse
Tags
Add map and channel type (maruel#34) * Add map and channel type * Add tests for map/channel type Closes maruel#30 * Better handle complex types * Update name to use switch statement * Skip processing of last Stack.Calls element instead of first The leaf function wasn't being processed before, so the following snippet: package main func g([]string) { panic("g") } func f(map[int]int) { g(make([]string, 5)) panic("f") } func main() { f(map[int]int{}) } resulted in: panic: g exit status 2 To see all goroutines, visit https://github.com/maruel/panicparse#GOTRACEBACK 18:25:04.051198 load(/path/to/main.go) 1: running main main.go:4 g(0xc420045ee8, 0x5, 0x5) main main.go:8 f(map[int]int(0xc420078000)) main main.go:13 main() and now results in: panic: g exit status 2 To see all goroutines, visit https://github.com/maruel/panicparse#GOTRACEBACK 18:25:42.981470 load(/path/to/main.go) 1: running main main.go:4 g([]string(0xc420045ee8 len=5 cap=5)) main main.go:8 f(map[int]int(0xc420066000)) main main.go:13 main()