From 6a3ed077a48de71621ad530f9078fffa0bc0ce32 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 19 Feb 2021 18:54:49 -0500 Subject: [PATCH] all: go fmt ./... Make all our package sources use Go 1.17 gofmt format (adding //go:build lines). Not strictly necessary but will avoid spurious changes as files are edited. Part of //go:build change (#41184). See https://golang.org/design/draft-gobuild Change-Id: I39a1884031dd02279530c64cd5d65ddfb8ba299c Reviewed-on: https://go-review.googlesource.com/c/term/+/294422 Trust: Russ Cox Run-TryBot: Russ Cox TryBot-Result: Go Bot Reviewed-by: Jason A. Donenfeld Reviewed-by: Robert Griesemer --- term_unix.go | 1 + term_unix_bsd.go | 1 + term_unsupported.go | 1 + 3 files changed, 3 insertions(+) diff --git a/term_unix.go b/term_unix.go index 4c60e45..6849b6e 100644 --- a/term_unix.go +++ b/term_unix.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || zos // +build aix darwin dragonfly freebsd linux netbsd openbsd zos package term diff --git a/term_unix_bsd.go b/term_unix_bsd.go index 3342be0..853b3d6 100644 --- a/term_unix_bsd.go +++ b/term_unix_bsd.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build darwin || dragonfly || freebsd || netbsd || openbsd // +build darwin dragonfly freebsd netbsd openbsd package term diff --git a/term_unsupported.go b/term_unsupported.go index 8b5d1ba..f1df850 100644 --- a/term_unsupported.go +++ b/term_unsupported.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !zos && !windows && !solaris && !plan9 // +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!zos,!windows,!solaris,!plan9 package term