Skip to content

Instantly share code, notes, and snippets.

@hectorcorrea
Created December 5, 2017 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hectorcorrea/5fd563f1dabb88bd0f351c0fc2bae5ee to your computer and use it in GitHub Desktop.
Save hectorcorrea/5fd563f1dabb88bd0f351c0fc2bae5ee to your computer and use it in GitHub Desktop.
A comparison of the output that I get on an example provided in StackOverflow https://stackoverflow.com/q/47660897/446681
~/dev/src/sandbox $ cat main.go
package main
func F(a int) {
panic(nil)
}
func main() {
F(1)
}
~/dev/src/sandbox $ go build && ./sandbox
panic: nil
goroutine 1 [running]:
panic(0x0, 0x0)
/usr/local/go/src/runtime/panic.go:500 +0x1a1
main.F(0x1)
/Users/hectorcorrea/dev/src/sandbox/main.go:4 +0x33
main.main()
/Users/hectorcorrea/dev/src/sandbox/main.go:8 +0x2a
~/dev/src/sandbox $ go version
go version go1.7.1 darwin/amd64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment