如果短期内不打算兼容的话,这样修改是最简单的,例如下面: ``` //go:build windows // +build windows package consumers import "errors" func InitConcurrentLogWriter(fname string, hourRotate bool) (*ConcurrentLogWriter, error) { return nil, errors.New("ConcurrentLogWriter not supported on windows") } ``` 这样比直接编译不了好很多