From 6d212800a42e8ab5c146b8ace3490ee17e5225f9 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Wed, 7 Sep 2016 11:21:46 -0500 Subject: Deprecate "disableunsafe" tag in favor of "safe". This adds a new build tag named "safe" which serves the exact same purpose as the current "disableunsafe" tag. This is being done, as recommended by @shurcooL, since it is emerging as the standard way to do it in several high profile packages, it mirrors the "unsafe" package nicely, it is shorter, and users generally seem to prefer it. However, to avoid breaking existing infrastructure, the disableunsafe tag is still available and simply is being deprecated. --- spew/internalunsafe_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'spew/internalunsafe_test.go') diff --git a/spew/internalunsafe_test.go b/spew/internalunsafe_test.go index ddaa41d..863b62c 100644 --- a/spew/internalunsafe_test.go +++ b/spew/internalunsafe_test.go @@ -14,8 +14,9 @@ // NOTE: Due to the following build constraints, this file will only be compiled // 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 +// "-tags safe" is not added to the go build command line. The "disableunsafe" +// tag is deprecated and thus should not be used. +// +build !js,!appengine,!safe,!disableunsafe /* This test file is part of the spew package rather than than the spew_test -- cgit v1.2.3