We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go version go1.6.1 linux/amd6
GOARCH="amd64" GOBIN="" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/home/rot256/go" GORACE="" GOROOT="/usr/lib/go" GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64" GO15VENDOREXPERIMENT="1" CC="gcc" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0" CXX="g++" CGO_ENABLED="1"
The distro is Debian (unstable)
See this program for a POC
I expected the last line to not be printed, since "Junk" returns nil (and the program typechecks) I expected err != nil to be false.
I don't know if this is intended behavior, but it seems error prone.
The text was updated successfully, but these errors were encountered:
See Why is my nil error value not equal to nil?
Sorry, something went wrong.
No branches or pull requests
Go version
go version go1.6.1 linux/amd6
Environment
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/rot256/go"
GORACE=""
GOROOT="/usr/lib/go"
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
GO15VENDOREXPERIMENT="1"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"
The distro is Debian (unstable)
Reproducing
See this program for a POC
Notes
I expected the last line to not be printed,
since "Junk" returns nil (and the program typechecks)
I expected err != nil to be false.
I don't know if this is intended behavior, but it seems error prone.
The text was updated successfully, but these errors were encountered: