From a22894be16551ae06c69d35724c0692cd4247002 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 3 Sep 2021 09:35:42 +0200 Subject: [PATCH] Add //go:build tags for Go 1.17 Run Go 1.17 gofmt to add //go:build tags. --- agent/sockopt_unix.go | 1 + agent/sockopt_unsupported.go | 1 + internal/internal_go1_13.go | 1 + internal/internal_lt_go1_13.go | 1 + 4 files changed, 4 insertions(+) diff --git a/agent/sockopt_unix.go b/agent/sockopt_unix.go index 7edaf209..8c472c64 100644 --- a/agent/sockopt_unix.go +++ b/agent/sockopt_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 !js && !plan9 && !windows // +build !js,!plan9,!windows package agent diff --git a/agent/sockopt_unsupported.go b/agent/sockopt_unsupported.go index df3223bd..ca079c69 100644 --- a/agent/sockopt_unsupported.go +++ b/agent/sockopt_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 (js && wasm) || plan9 || windows // +build js,wasm plan9 windows package agent diff --git a/internal/internal_go1_13.go b/internal/internal_go1_13.go index 6e823138..252f7969 100644 --- a/internal/internal_go1_13.go +++ b/internal/internal_go1_13.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 go1.13 // +build go1.13 package internal diff --git a/internal/internal_lt_go1_13.go b/internal/internal_lt_go1_13.go index 8506cf5f..e1bb00e9 100644 --- a/internal/internal_lt_go1_13.go +++ b/internal/internal_lt_go1_13.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 !go1.13 // +build !go1.13 package internal