go install gcflags -I -N
https://gist.github.com/3025333
https://gist.github.com/3025333
Turning off optimization and inlining in Go gc compilers
Pass the flags -gcflags '-N -l'
.
$ go build -gcflags '-N -l' [code.go]
or
$ go install -gcflags '-N -l' [code.go]
References