From 525d424fca52bd05c3d61cd7a50829fb7c2cf4ae Mon Sep 17 00:00:00 2001 From: xjasonlyu Date: Sat, 21 Aug 2021 10:48:37 +0800 Subject: [PATCH] Chore: go1.17 build constraints --- component/dialer/bind_others.go | 2 +- component/dialer/fwmark_others.go | 2 +- core/device/tun/io_unix.go | 2 +- core/device/tun/tun_gvisor.go | 2 +- core/device/tun/tun_wireguard.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/component/dialer/bind_others.go b/component/dialer/bind_others.go index d946ece..8348e1b 100755 --- a/component/dialer/bind_others.go +++ b/component/dialer/bind_others.go @@ -1,4 +1,4 @@ -// +build !linux,!darwin +//go:build !linux && !darwin package dialer diff --git a/component/dialer/fwmark_others.go b/component/dialer/fwmark_others.go index e5cdd14..b00b301 100644 --- a/component/dialer/fwmark_others.go +++ b/component/dialer/fwmark_others.go @@ -1,4 +1,4 @@ -// +build !linux +//go:build !linux package dialer diff --git a/core/device/tun/io_unix.go b/core/device/tun/io_unix.go index dfc083d..45c6fef 100644 --- a/core/device/tun/io_unix.go +++ b/core/device/tun/io_unix.go @@ -1,4 +1,4 @@ -// +build darwin freebsd openbsd +//go:build darwin || freebsd || openbsd package tun diff --git a/core/device/tun/tun_gvisor.go b/core/device/tun/tun_gvisor.go index 297b250..6a36c46 100755 --- a/core/device/tun/tun_gvisor.go +++ b/core/device/tun/tun_gvisor.go @@ -1,4 +1,4 @@ -// +build linux +//go:build linux package tun diff --git a/core/device/tun/tun_wireguard.go b/core/device/tun/tun_wireguard.go index 130bc0f..500ac6c 100755 --- a/core/device/tun/tun_wireguard.go +++ b/core/device/tun/tun_wireguard.go @@ -1,4 +1,4 @@ -// +build !linux +//go:build !linux package tun