D:\GoWorkSpace\src\Gin_API_Framework\api>go run main.go
# Gin_API_Framework/vendor/github.com/fvbock/endless
..\vendor\github.com\fvbock\endless\endless.go:64: undefined: syscall.SIGUSR1
..\vendor\github.com\fvbock\endless\endless.go:65: undefined: syscall.SIGUSR2
..\vendor\github.com\fvbock\endless\endless.go:68: undefined: syscall.SIGTSTP
..\vendor\github.com\fvbock\endless\endless.go:111: undefined: syscall.SIGUSR1
..\vendor\github.com\fvbock\endless\endless.go:112: undefined: syscall.SIGUSR2
..\vendor\github.com\fvbock\endless\endless.go:115: undefined: syscall.SIGTSTP
..\vendor\github.com\fvbock\endless\endless.go:119: undefined: syscall.SIGUSR1
..\vendor\github.com\fvbock\endless\endless.go:120: undefined: syscall.SIGUSR2
..\vendor\github.com\fvbock\endless\endless.go:123: undefined: syscall.SIGTSTP
..\vendor\github.com\fvbock\endless\endless.go:224: undefined: syscall.Kill
..\vendor\github.com\fvbock\endless\endless.go:224: too many errors
endless.go 中syscall.SIGUSR1,syscall.SIGUSR2,syscall.SIGTSTP, 找不到。怎么解决啊。
syscall包里面的常量会根据当前操作系统做出选择,win下的signal信号没有 syscall.SIGUSR1 和 syscall.SIGUSR2,所以会报此错
#2