From 2ef39d47540c4537f0ddd3355fb95b33b91c09b7 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sun, 5 Sep 2021 16:00:43 +0200 Subject: global: add new go 1.17 build comments Signed-off-by: Jason A. Donenfeld --- conn/default.go | 1 + conn/mark_default.go | 1 + conn/mark_unix.go | 1 + device/queueconstants_default.go | 1 + device/queueconstants_ios.go | 1 + device/race_disabled_test.go | 3 ++- device/race_enabled_test.go | 3 ++- device/sticky_default.go | 1 + ipc/uapi_bsd.go | 1 + ipc/uapi_unix.go | 1 + main.go | 1 + rwcancel/rwcancel.go | 1 + tun/operateonfd.go | 1 + 13 files changed, 15 insertions(+), 2 deletions(-) diff --git a/conn/default.go b/conn/default.go index 161454a..97bf08c 100644 --- a/conn/default.go +++ b/conn/default.go @@ -1,3 +1,4 @@ +//go:build !linux && !windows // +build !linux,!windows /* SPDX-License-Identifier: MIT diff --git a/conn/mark_default.go b/conn/mark_default.go index c315f4b..91cf6a8 100644 --- a/conn/mark_default.go +++ b/conn/mark_default.go @@ -1,3 +1,4 @@ +//go:build !linux && !openbsd && !freebsd // +build !linux,!openbsd,!freebsd /* SPDX-License-Identifier: MIT diff --git a/conn/mark_unix.go b/conn/mark_unix.go index 18eb581..faa4245 100644 --- a/conn/mark_unix.go +++ b/conn/mark_unix.go @@ -1,3 +1,4 @@ +//go:build linux || openbsd || freebsd // +build linux openbsd freebsd /* SPDX-License-Identifier: MIT diff --git a/device/queueconstants_default.go b/device/queueconstants_default.go index d5c6927..fa2c055 100644 --- a/device/queueconstants_default.go +++ b/device/queueconstants_default.go @@ -1,3 +1,4 @@ +//go:build !android && !ios && !windows // +build !android,!ios,!windows /* SPDX-License-Identifier: MIT diff --git a/device/queueconstants_ios.go b/device/queueconstants_ios.go index 36c8704..21a0e26 100644 --- a/device/queueconstants_ios.go +++ b/device/queueconstants_ios.go @@ -1,3 +1,4 @@ +//go:build ios // +build ios /* SPDX-License-Identifier: MIT diff --git a/device/race_disabled_test.go b/device/race_disabled_test.go index 65fac7e..6552f22 100644 --- a/device/race_disabled_test.go +++ b/device/race_disabled_test.go @@ -1,4 +1,5 @@ -//+build !race +//go:build !race +// +build !race /* SPDX-License-Identifier: MIT * diff --git a/device/race_enabled_test.go b/device/race_enabled_test.go index f8ccac3..1abba5a 100644 --- a/device/race_enabled_test.go +++ b/device/race_enabled_test.go @@ -1,4 +1,5 @@ -//+build race +//go:build race +// +build race /* SPDX-License-Identifier: MIT * diff --git a/device/sticky_default.go b/device/sticky_default.go index 1cc52f6..fa39ac0 100644 --- a/device/sticky_default.go +++ b/device/sticky_default.go @@ -1,3 +1,4 @@ +//go:build !linux // +build !linux package device diff --git a/ipc/uapi_bsd.go b/ipc/uapi_bsd.go index 5beee9e..062f5d7 100644 --- a/ipc/uapi_bsd.go +++ b/ipc/uapi_bsd.go @@ -1,3 +1,4 @@ +//go:build darwin || freebsd || openbsd // +build darwin freebsd openbsd /* SPDX-License-Identifier: MIT diff --git a/ipc/uapi_unix.go b/ipc/uapi_unix.go index 544651b..48f6846 100644 --- a/ipc/uapi_unix.go +++ b/ipc/uapi_unix.go @@ -1,3 +1,4 @@ +//go:build linux || darwin || freebsd || openbsd // +build linux darwin freebsd openbsd /* SPDX-License-Identifier: MIT diff --git a/main.go b/main.go index 639d644..d7181b8 100644 --- a/main.go +++ b/main.go @@ -1,3 +1,4 @@ +//go:build !windows // +build !windows /* SPDX-License-Identifier: MIT diff --git a/rwcancel/rwcancel.go b/rwcancel/rwcancel.go index 5dff446..7013b16 100644 --- a/rwcancel/rwcancel.go +++ b/rwcancel/rwcancel.go @@ -1,3 +1,4 @@ +//go:build !windows // +build !windows /* SPDX-License-Identifier: MIT diff --git a/tun/operateonfd.go b/tun/operateonfd.go index a9dcaef..aab7116 100644 --- a/tun/operateonfd.go +++ b/tun/operateonfd.go @@ -1,3 +1,4 @@ +//go:build !windows // +build !windows /* SPDX-License-Identifier: MIT -- cgit v1.2.3-59-g8ed1b