multi: add golang 1.17 compatible build tags

With go 1.17 a change to the build flags was implemented:
https://go.googlesource.com/proposal/+/master/design/draft-gobuild.md

The formatter now automatically adds the forward-compatible build tag
format and the linter checks for them, so we need to include them in our
code.
This commit is contained in:
Oliver Gugger authored and Olaoluwa Osuntokun committed 2021-09-29 17:31:37 -07:00
1 parent d973cf1060
commit 0b4e03f5fc
187 files changed
+189 -4

No files matched your search

+1
View File
@@ -1,3 +1,4 @@
//go:build dev
// +build dev
package build
+1
View File
@@ -1,3 +1,4 @@
//go:build !dev
// +build !dev
package build
+1
View File
@@ -1,3 +1,4 @@
//go:build !stdlog && !nolog
// +build !stdlog,!nolog
package build
+1
View File
@@ -1,3 +1,4 @@
//go:build nolog
// +build nolog
package build
+1
View File
@@ -1,3 +1,4 @@
//go:build stdlog
// +build stdlog
package build
+1
View File
@@ -1,3 +1,4 @@
//go:build dev && critical
// +build dev,critical
package build
+1
View File
@@ -1,3 +1,4 @@
//go:build dev && debug
// +build dev,debug
package build
+1
View File
@@ -1,3 +1,4 @@
//go:build !info && !debug && !trace && !warn && !error && !critical && !off
// +build !info,!debug,!trace,!warn,!error,!critical,!off
package build
+1
View File
@@ -1,3 +1,4 @@
//go:build dev && error
// +build dev,error
package build
+1
View File
@@ -1,3 +1,4 @@
//go:build dev && info
// +build dev,info
package build
+1
View File
@@ -1,3 +1,4 @@
//go:build dev && off
// +build dev,off
package build
+1
View File
@@ -1,3 +1,4 @@
//go:build dev && trace
// +build dev,trace
package build
+1
View File
@@ -1,3 +1,4 @@
//go:build dev && warn
// +build dev,warn
package build