build: remove build constraint syntax for go 1.16 and older
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
// Non-unix specific functions.
|
||||
|
||||
//go:build !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris
|
||||
// +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris
|
||||
|
||||
package accounting
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// Unix specific functions.
|
||||
|
||||
//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
|
||||
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
|
||||
|
||||
package accounting
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// See https://github.com/golang/go/issues/14441 - plan9
|
||||
|
||||
//go:build !plan9
|
||||
// +build !plan9
|
||||
|
||||
package config
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// See https://github.com/golang/go/issues/14441 - plan9
|
||||
|
||||
//go:build plan9
|
||||
// +build plan9
|
||||
|
||||
package config
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// Non-unix specific functions.
|
||||
|
||||
//go:build !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris
|
||||
// +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris
|
||||
|
||||
package configfile
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// Unix specific functions.
|
||||
|
||||
//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
|
||||
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
|
||||
|
||||
package configfile
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// Daemonization stub for non-Unix platforms (common definitions)
|
||||
|
||||
//go:build windows || plan9 || js
|
||||
// +build windows plan9 js
|
||||
|
||||
package fs
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// Daemonization interface for Unix platforms (common definitions)
|
||||
|
||||
//go:build !windows && !plan9 && !js
|
||||
// +build !windows,!plan9,!js
|
||||
|
||||
package fs
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build !windows
|
||||
// +build !windows
|
||||
|
||||
// Package driveletter returns whether a name is a valid drive letter
|
||||
package driveletter
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build windows
|
||||
// +build windows
|
||||
|
||||
// Package driveletter returns whether a name is a valid drive letter
|
||||
package driveletter
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build !plan9
|
||||
// +build !plan9
|
||||
|
||||
package fserrors
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build plan9
|
||||
// +build plan9
|
||||
|
||||
package fserrors
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build !plan9
|
||||
// +build !plan9
|
||||
|
||||
package fserrors
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build windows
|
||||
// +build windows
|
||||
|
||||
package fserrors
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build gofuzz
|
||||
// +build gofuzz
|
||||
|
||||
/*
|
||||
Fuzz test the Parse function
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// Log the panic to the log file - for oses which can't do this
|
||||
|
||||
//go:build !windows && !darwin && !dragonfly && !freebsd && !linux && !nacl && !netbsd && !openbsd
|
||||
// +build !windows,!darwin,!dragonfly,!freebsd,!linux,!nacl,!netbsd,!openbsd
|
||||
|
||||
package log
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// Log the panic under unix to the log file
|
||||
|
||||
//go:build !windows && !solaris && !plan9 && !js
|
||||
// +build !windows,!solaris,!plan9,!js
|
||||
|
||||
package log
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
// https://play.golang.org/p/kLtct7lSUg
|
||||
|
||||
//go:build windows
|
||||
// +build windows
|
||||
|
||||
package log
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// Syslog interface for non-Unix variants only
|
||||
|
||||
//go:build windows || nacl || plan9
|
||||
// +build windows nacl plan9
|
||||
|
||||
package log
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// Syslog interface for Unix variants only
|
||||
|
||||
//go:build !windows && !nacl && !plan9
|
||||
// +build !windows,!nacl,!plan9
|
||||
|
||||
package log
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// Systemd interface for non-Unix variants only
|
||||
|
||||
//go:build !unix
|
||||
// +build !unix
|
||||
|
||||
package log
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// Systemd interface for Unix variants only
|
||||
|
||||
//go:build unix
|
||||
// +build unix
|
||||
|
||||
package log
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build ignore
|
||||
// +build ignore
|
||||
|
||||
// A simple metadata mapper for testing purposes
|
||||
package main
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
// This library exports the core rc functionality
|
||||
|
||||
//go:build js
|
||||
// +build js
|
||||
|
||||
package main
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build none
|
||||
// +build none
|
||||
|
||||
package main
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build !go1.20
|
||||
// +build !go1.20
|
||||
|
||||
package fs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user