Tags: rootAvish/panicparse
Tags
Switch to go.mod Keeps the vendored files, but that the occasion to update them. Did approximatively: - git rm -rf vendor Gopkg.* - git commit -a -m . - Move the directory out of GOPATH - export GO111MODULE=on - go mod init - go test ./... - go vendor - Edited go.mod to specify "go 1.11" instead of "go 1.12". - git add . - git commit -a --amend <this content> Then I add to add GO111MODULE=off before calling pcg in .travis.yml because it confuses it. I will have to fix pcg or stop using it eventually.
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()