//go:build !windows package clipboard import ( "fmt" "os/exec" ) // checkBinary verifies that a command exists in $PATH. // Only used on Linux and macOS (not Windows, which uses Win32 API directly). func checkBinary(name string) error { _, err := exec.LookPath(name) if err != nil { return fmt.Errorf("%s: %w", name, err) } return nil }