Thanks to visit codestin.com Credit goes to github.com
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
func(s ...string) { if s == nil { fmt.Println("s is nil") } }()
With Go compiler s == nil (playground) With GopherJS s != nil (playground)
s == nil
s != nil
https://golang.org/ref/spec#Passing_arguments_to_..._parameters
The text was updated successfully, but these errors were encountered:
compiler: fix variadic args not being nil when zero length.
2cad84c
Fixes gopherjs#806.
Hmm I was fairly certain I'd filed and issue for this in the past, @bzub. But I guess I misremembered because I can't find anything.
I've just pushed up #807 to fix this; perhaps you could give it a try:
cd $(go list -f '{{.Dir}}' github.com/gopherjs/gopherjs) && \ git fetch origin pull/807/head && \ git checkout FETCH_HEAD && \ go install
Sorry, something went wrong.
88b99aa
Fixes #806.
Successfully merging a pull request may close this issue.
Example
With Go compiler
s == nil
(playground)With GopherJS
s != nil
(playground)Spec
https://golang.org/ref/spec#Passing_arguments_to_..._parameters
The text was updated successfully, but these errors were encountered: