]> Cypherpunks repositories - gostls13.git/commit
go/doc: disable playground for examples that use syscall/js
authorRichard Musiol <mail@richard-musiol.de>
Sat, 10 Nov 2018 14:31:32 +0000 (15:31 +0100)
committerRichard Musiol <neelance@gmail.com>
Tue, 20 Nov 2018 20:56:13 +0000 (20:56 +0000)
commitf8c2f4f111f40551eafd12dadbfbc6c4bc4d37c0
tree80d8ae54f5176ea17d4058f1d9800216076db4d4
parent77807093692070801b66960b6918fb59c9b470cd
go/doc: disable playground for examples that use syscall/js

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>
src/go/doc/example.go