From c01d52b66af1277201f3f39d9e0e45411ba0111b Mon Sep 17 00:00:00 2001
From: "Jason A. Donenfeld" <Jason@zx2c4.com>
Date: Tue, 12 Oct 2021 11:46:53 -0600
Subject: [PATCH] global: add newer-style build tags

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
---
 ipc/winpipe/file.go                  | 1 +
 ipc/winpipe/winpipe.go               | 1 +
 ipc/winpipe/winpipe_test.go          | 1 +
 tun/netstack/examples/http_client.go | 1 +
 tun/netstack/examples/http_server.go | 1 +
 tun/wintun/dll_fromfile_windows.go   | 1 +
 tun/wintun/dll_fromrsrc_windows.go   | 1 +
 7 files changed, 7 insertions(+)

diff --git a/ipc/winpipe/file.go b/ipc/winpipe/file.go
index 0c9abb1..748d7ac 100644
--- a/ipc/winpipe/file.go
+++ b/ipc/winpipe/file.go
@@ -1,3 +1,4 @@
+//go:build windows
 // +build windows
 
 /* SPDX-License-Identifier: MIT
diff --git a/ipc/winpipe/winpipe.go b/ipc/winpipe/winpipe.go
index f02f3d8..4a435f8 100644
--- a/ipc/winpipe/winpipe.go
+++ b/ipc/winpipe/winpipe.go
@@ -1,3 +1,4 @@
+//go:build windows
 // +build windows
 
 /* SPDX-License-Identifier: MIT
diff --git a/ipc/winpipe/winpipe_test.go b/ipc/winpipe/winpipe_test.go
index ee8dc8c..20400dd 100644
--- a/ipc/winpipe/winpipe_test.go
+++ b/ipc/winpipe/winpipe_test.go
@@ -1,3 +1,4 @@
+//go:build windows
 // +build windows
 
 /* SPDX-License-Identifier: MIT
diff --git a/tun/netstack/examples/http_client.go b/tun/netstack/examples/http_client.go
index 39b1c6d..876e237 100644
--- a/tun/netstack/examples/http_client.go
+++ b/tun/netstack/examples/http_client.go
@@ -1,3 +1,4 @@
+//go:build ignore
 // +build ignore
 
 /* SPDX-License-Identifier: MIT
diff --git a/tun/netstack/examples/http_server.go b/tun/netstack/examples/http_server.go
index c1fc753..9420293 100644
--- a/tun/netstack/examples/http_server.go
+++ b/tun/netstack/examples/http_server.go
@@ -1,3 +1,4 @@
+//go:build ignore
 // +build ignore
 
 /* SPDX-License-Identifier: MIT
diff --git a/tun/wintun/dll_fromfile_windows.go b/tun/wintun/dll_fromfile_windows.go
index f40f8b3..31c8cc3 100644
--- a/tun/wintun/dll_fromfile_windows.go
+++ b/tun/wintun/dll_fromfile_windows.go
@@ -1,3 +1,4 @@
+//go:build !load_wintun_from_rsrc
 // +build !load_wintun_from_rsrc
 
 /* SPDX-License-Identifier: MIT
diff --git a/tun/wintun/dll_fromrsrc_windows.go b/tun/wintun/dll_fromrsrc_windows.go
index dc70486..96b51c2 100644
--- a/tun/wintun/dll_fromrsrc_windows.go
+++ b/tun/wintun/dll_fromrsrc_windows.go
@@ -1,3 +1,4 @@
+//go:build load_wintun_from_rsrc
 // +build load_wintun_from_rsrc
 
 /* SPDX-License-Identifier: MIT