Disable unsafe for GopherJS compiler.

* Disable unsafe for GopherJS compiler.
* Update comments to reflect GopherJS build constraints
This commit is contained in:
Jonathan Hall 2016-09-07 18:16:42 +02:00 committed by Dave Collins
parent 3838b6852d
commit 66f99a29a0
3 changed files with 9 additions and 9 deletions

View File

@ -13,9 +13,9 @@
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
// NOTE: Due to the following build constraints, this file will only be compiled
// when the code is not running on Google App Engine and "-tags disableunsafe"
// is not added to the go build command line.
// +build !appengine,!disableunsafe
// when the code is not running on Google App Engine, compiled by GopherJS, and
// "-tags disableunsafe" is not added to the go build command line.
// +build !appengine,!disableunsafe,!js
package spew

View File

@ -13,9 +13,9 @@
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
// NOTE: Due to the following build constraints, this file will only be compiled
// when either the code is running on Google App Engine or "-tags disableunsafe"
// is added to the go build command line.
// +build appengine disableunsafe
// when the code is running on Google App Engine, compiled by GopherJS, or
// "-tags disableunsafe" is added to the go build command line.
// +build appengine disableunsafe js
package spew

View File

@ -13,9 +13,9 @@
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
// NOTE: Due to the following build constraints, this file will only be compiled
// when the code is not running on Google App Engine and "-tags disableunsafe"
// is not added to the go build command line.
// +build !appengine,!disableunsafe
// when the code is not running on Google App Engine, compiled by GopherJS, and
// "-tags disableunsafe" is not added to the go build command line.
// +build !appengine,!disableunsafe,!js
/*
This test file is part of the spew package rather than than the spew_test