Removed obsolete +build directives in favor of modern go:build
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user