Skip to content

Commit 4433af2

Browse files
committed
Add //go:build lines
Starting with Go 1.17, //go:build lines are preferred over // +build lines, see https://golang.org/doc/go1.17#build-lines and https://golang.org/design/draft-gobuild for details. This change was generated by running Go 1.17 `go fmt ./...` which automatically adds //go:build lines based on the existing // +build lines.
1 parent f6c0098 commit 4433af2

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

colorable_appengine.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build appengine
12
// +build appengine
23

34
package colorable

colorable_others.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// +build !windows
2-
// +build !appengine
1+
//go:build !windows && !appengine
2+
// +build !windows,!appengine
33

44
package colorable
55

colorable_windows.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// +build windows
2-
// +build !appengine
1+
//go:build windows && !appengine
2+
// +build windows,!appengine
33

44
package colorable
55

0 commit comments

Comments
 (0)