Skip to content

Instantly share code, notes, and snippets.

@mlowicki
Created October 12, 2016 20:54
Show Gist options
  • Save mlowicki/8d5943f4372422a33ac3c547ce658790 to your computer and use it in GitHub Desktop.
Save mlowicki/8d5943f4372422a33ac3c547ce658790 to your computer and use it in GitHub Desktop.
> go install github.com/mlowicki/lab && ./bin/lab
Before defer statement
After defer statement
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x549b3]
goroutine 1 [running]:
panic(0xda6c0, 0x8201c80e0)
/usr/local/go/src/runtime/panic.go:481 +0x3e6
main.main()
/Users/mlowicki/projects/golang/spec/src/github.com/mlowicki/lab/lab.go:11 +0x1d5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment