@@ -0,0 +1,12 @@
|
||||
//go:build darwin
|
||||
|
||||
package logger
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
)
|
||||
|
||||
func newSysLog(_ string) (io.WriteCloser, error) {
|
||||
return nil, fmt.Errorf("unavailable on macOS")
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
//go:build !windows
|
||||
//go:build !windows && !darwin
|
||||
|
||||
package logger
|
||||
|
||||
|
||||
@@ -7,6 +7,6 @@ import (
|
||||
"io"
|
||||
)
|
||||
|
||||
func newSysLog(prefix string) (io.WriteCloser, error) {
|
||||
return nil, fmt.Errorf("not implemented on windows")
|
||||
func newSysLog(_ string) (io.WriteCloser, error) {
|
||||
return nil, fmt.Errorf("unavailable on Windows")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user