Skip to content

affected/package: #55102

New issue

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

Closed
467892746 opened this issue Sep 16, 2022 · 2 comments
Closed

affected/package: #55102

467892746 opened this issue Sep 16, 2022 · 2 comments

Comments

@467892746
Copy link

What version of Go are you using (go version)?

$ go version 
go1.18.1 darwin/arm64

Does this issue reproduce with the latest release?

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GO111MODULE="on"
GOARCH="arm64"
GOBIN="/Users/biwentao/Desktop/go/bin"
GOCACHE="/Users/biwentao/Library/Caches/go-build"
GOENV="/Users/biwentao/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/biwentao/Desktop/go/pkg/mod"
GONOPROXY=""
GONOSUMDB="gitlab.ustock.cc/*"
GOOS="darwin"
GOPATH="/Users/biwentao/Desktop/go"
GOPRIVATE=""
GOPROXY="https://goproxy.cn,direct"
GOROOT="/usr/local/go"
GOSUMDB="off"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_arm64"
GOVCS=""
GOVERSION="go1.18.1"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="0"
GOMOD="/Users/biwentao/Desktop/go/src/demo/go.mod"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch arm64 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/k5/l5y3fv9n27zfjrd9jwmp4p8c0000gn/T/go-build1830639654=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

func main() {
a := "222"
fmt.Println(json.Valid([]byte(a)))
}

What did you expect to see?

false

What did you see instead?

true

@mengzhuo
Copy link
Contributor

Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.

For questions please refer to https://github.com/golang/go/wiki/Questions


FYI: JSON spec https://www.json.org/json-en.html

@mengzhuo mengzhuo closed this as not planned Won't fix, can't repro, duplicate, stale Sep 16, 2022
@467892746
Copy link
Author

Thank you for your answer

@golang golang locked and limited conversation to collaborators Sep 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants