From 4433af2fcef482714c59213beedce5033e474cc2 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 22 Sep 2021 15:37:43 +0200 Subject: [PATCH] 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. --- colorable_appengine.go | 1 + colorable_others.go | 4 ++-- colorable_windows.go | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/colorable_appengine.go b/colorable_appengine.go index 1f7806f..416d1bb 100644 --- a/colorable_appengine.go +++ b/colorable_appengine.go @@ -1,3 +1,4 @@ +//go:build appengine // +build appengine package colorable diff --git a/colorable_others.go b/colorable_others.go index 08cbd1e..766d946 100644 --- a/colorable_others.go +++ b/colorable_others.go @@ -1,5 +1,5 @@ -// +build !windows -// +build !appengine +//go:build !windows && !appengine +// +build !windows,!appengine package colorable diff --git a/colorable_windows.go b/colorable_windows.go index 04c4229..4eefe82 100644 --- a/colorable_windows.go +++ b/colorable_windows.go @@ -1,5 +1,5 @@ -// +build windows -// +build !appengine +//go:build windows && !appengine +// +build windows,!appengine package colorable