Removed obsolete +build directives in favor of modern go:build

This commit is contained in:
Cristian Maglie
2023-08-09 18:54:02 +02:00
parent 75c59a9418
commit 93097bf495
6 changed files with 7 additions and 10 deletions

View File

@@ -1,12 +1,11 @@
// +build darwin
// +build amd64 arm64
// //
// Copyright 2014-2021 Cristian Maglie. All rights reserved. // Copyright 2014-2021 Cristian Maglie. All rights reserved.
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// //
//go:build darwin && (amd64 || arm64)
package serial package serial
import "golang.org/x/sys/unix" import "golang.org/x/sys/unix"

View File

@@ -4,7 +4,7 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// //
// +build linux freebsd openbsd //go:build linux || freebsd || openbsd
package serial package serial

View File

@@ -1,12 +1,11 @@
// +build linux
// +build !ppc64le
// //
// Copyright 2014-2021 Cristian Maglie. All rights reserved. // Copyright 2014-2021 Cristian Maglie. All rights reserved.
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// //
//go:build linux && !ppc64le
package serial package serial
import "golang.org/x/sys/unix" import "golang.org/x/sys/unix"

View File

@@ -5,7 +5,6 @@
// //
//go:build linux || darwin || freebsd || openbsd //go:build linux || darwin || freebsd || openbsd
// +build linux darwin freebsd openbsd
package serial package serial

View File

@@ -4,7 +4,7 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// //
// +build linux darwin freebsd openbsd //go:build linux || darwin || freebsd || openbsd
package unixutils package unixutils

View File

@@ -4,7 +4,7 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// //
// +build linux darwin freebsd openbsd //go:build linux || darwin || freebsd || openbsd
package unixutils package unixutils