feat(build): fixing windows build issue, #5370

This commit is contained in:
Torkel Ödegaard 2016-06-16 14:36:19 +02:00
parent 46fe9a167e
commit b039a81375
2 changed files with 21 additions and 1 deletions

View File

@ -14,7 +14,7 @@ install:
- npm install
- npm install -g grunt-cli
# install gcc (needed for sqlite3)
- choco install -y mingw
- choco install -y mingw -limitoutput
- set PATH=C:\tools\mingw64\bin;%PATH%
- echo %PATH%
- echo %GOPATH%

20
pkg/log/syslog_windows.go Normal file
View File

@ -0,0 +1,20 @@
//+build windows
package log
import "github.com/inconshreveable/log15"
type SysLogHandler struct {
}
func NewSyslog() *SysLogHandler {
return &SysLogHandler{}
}
func (sw *SysLogHandler) Init() error {
return nil
}
func (sw *SysLogHandler) Log(r *log15.Record) error {
return nil
}