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
$ go version
go version go1.12.5 linux/amd64
go env
$ go env
GOARCH="amd64" GOBIN="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOROOT="/usr/local/go" GOTMPDIR="" GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64" GCCGO="gccgo" CC="gcc" CXX="g++" CGO_ENABLED="1" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build191036311=/tmp/go-build -gno-record-gcc-switches"
https://play.golang.org/p/ELkurW4YV8x
Error if json is not valid.
No error
The text was updated successfully, but these errors were encountered:
I don't think you understand the usage of json.Decoder. json.Decoder reads the next JSON-encoded value from its input and stores it in the value pointed to by v. you can see https://play.golang.org/p/xj4l9fkWPQ2 and https://play.golang.org/p/vdGLVq5rfu_R
Sorry, something went wrong.
What @zeast said. I will close this as the issue has been resolved. If you have further questions, feel free to ask it in any of these forums below:
Stack Overflow with questions tagged "go"
The Go Forum, a web-based forum
Gophers Slack, use the invite app for access. The #general channel is a good starting point.
#general
Go Community on Hashnode with questions and posts tagged with "go"
The golang-nuts mailing list
IRC channel #go-nuts on Freenode
Thanks
Got it, thanks. I had different understanding, what I read from a library code.
No branches or pull requests
What version of Go are you using (
go version
)?go version go1.12.5 linux/amd64
Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://play.golang.org/p/ELkurW4YV8x
What did you expect to see?
Error if json is not valid.
What did you see instead?
No error
The text was updated successfully, but these errors were encountered: