remove redundant build-tag comments

- The "linux" build tags were redundant as they were in a _linux file
- The project already states that go1.10 is a minimum (and long obsolete,
  so unlikely to be used still).
- Format the remaining build-tags for current go versions.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2023-01-13 16:20:45 +01:00 committed by Jeff Widman
parent 43aa913982
commit 22a9216d17
4 changed files with 3 additions and 4 deletions

View File

@ -23,6 +23,7 @@ import (
"fmt"
"net"
"runtime"
"github.com/vishvananda/netns"
)

View File

@ -71,7 +71,7 @@ func (ns *NsHandle) Close() error {
if err := unix.Close(int(*ns)); err != nil {
return err
}
(*ns) = -1
*ns = -1
return nil
}

View File

@ -1,6 +1,3 @@
//go:build linux && go1.10
// +build linux,go1.10
package netns
import (

View File

@ -1,3 +1,4 @@
//go:build !linux
// +build !linux
package netns