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
go/doc: example for syscall/js.NewCallback doesn't run #28526
Comments
Did you set |
@neelance Nope. I don't have access to golang.org (which presumably runs the examples). |
Oh sorry, I jumped to conclusions without reading the issue closely enough (there have been other issues caused by missing |
Change https://golang.org/cl/148918 mentions this issue: |
The playground is not using GOOS=js, so it is not able to use the package syscall/js. Examples that depend on syscall/js should not show a "Run" button. Fixes #28526. Change-Id: I8b2fcdd0c0ee517a5c3864bf459f813129542389 Reviewed-on: https://go-review.googlesource.com/c/148918 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
I noticed something in
It seems |
Following #28492: the example for
NewCallback
(https://golang.org/pkg/syscall/js/#NewCallback) has the Run button but doesn't run, becauseprog.go:5:2: build constraints exclude all Go files in /usr/local/go/src/syscall/js
The text was updated successfully, but these errors were encountered: