use file name suffix for OS-specific code wherever possible (#5787)
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
//go:build windows
|
||||
|
||||
package externalcmd
|
||||
|
||||
import (
|
||||
@@ -1,5 +1,3 @@
|
||||
//go:build !windows
|
||||
|
||||
package externalcmd
|
||||
|
||||
import (
|
||||
|
||||
-2
@@ -1,5 +1,3 @@
|
||||
//go:build darwin || windows
|
||||
|
||||
package logger
|
||||
|
||||
import "fmt"
|
||||
@@ -0,0 +1,7 @@
|
||||
package logger
|
||||
|
||||
import "fmt"
|
||||
|
||||
func newDestinationSyslog(_ string) (destination, error) {
|
||||
return nil, fmt.Errorf("syslog is not available on macOS and Windows")
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
//go:build windows
|
||||
|
||||
package rlimit
|
||||
|
||||
func Raise() error {
|
||||
-2
@@ -1,5 +1,3 @@
|
||||
//go:build linux && arm
|
||||
|
||||
package rpicamera
|
||||
|
||||
import (
|
||||
-2
@@ -1,5 +1,3 @@
|
||||
//go:build linux && arm64
|
||||
|
||||
package rpicamera
|
||||
|
||||
import (
|
||||
Reference in New Issue
Block a user