use file name suffix for OS-specific code wherever possible (#5787)

This commit is contained in:
Alessandro Ros
2026-05-19 11:48:05 +02:00
committed by GitHub
parent e7b811fdc0
commit 111302f9e3
9 changed files with 7 additions and 12 deletions
@@ -1,5 +1,3 @@
//go:build windows
package externalcmd
import (
-2
View File
@@ -1,5 +1,3 @@
//go:build !windows
package externalcmd
import (
@@ -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 {
@@ -1,5 +1,3 @@
//go:build linux && arm
package rpicamera
import (
@@ -1,5 +1,3 @@
//go:build linux && arm64
package rpicamera
import (