//go:build !linux && !freebsd // +build !linux,!freebsd package main import ( "fmt" "os" ) func syslogHook() { if !useSyslog { return } fmt.Fprintf(os.Stderr, "Logging to Syslog is not supported on Windows") os.Exit(1) }