-
-
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
This file contains 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
~/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