Giter Club home page Giter Club logo

Comments (9)

eddycjy avatar eddycjy commented on May 18, 2024

缺少的第三方依赖包已重新添加到 vendor/ 中,现在应该可以了。麻烦你重新拉取一下

$ go get -u github.com/EDDYCJY/go-gin-example

from go-gin-example.

bighuangbee avatar bighuangbee commented on May 18, 2024

还有错误
..\gopath\src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:64:3: undefined: syscall.SIGUSR1
..\gopath\src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:65:3: undefined: syscall.SIGUSR2
..\gopath\src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:68:3: undefined: syscall.SIGTSTP
..\gopath\src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:111:5: undefined: syscall.SIGUSR1
..\gopath\src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:112:5: undefined: syscall.SIGUSR2
..\gopath\src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:115:5: undefined: syscall.SIGTSTP
..\gopath\src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:119:5: undefined: syscall.SIGUSR1
..\gopath\src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:120:5: undefined: syscall.SIGUSR2
..\gopath\src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:123:5: undefined: syscall.SIGTSTP
..\gopath\src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:224:3: undefined: syscall.Kill
..\gopath\src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:224:3: too many errors

from go-gin-example.

eddycjy avatar eddycjy commented on May 18, 2024

@weihuahuang 你是 windows 系统?

from go-gin-example.

bighuangbee avatar bighuangbee commented on May 18, 2024

是的

from go-gin-example.

eddycjy avatar eddycjy commented on May 18, 2024

@weihuahuang Windows 的话,把这块代码放出来:https://github.com/EDDYCJY/go-gin-example/blob/master/main.go#L39-L48

平滑重启这块的代码 Windows 不支持,因此要注释掉:https://github.com/EDDYCJY/go-gin-example/blob/master/main.go#L51-L62

from go-gin-example.

eddycjy avatar eddycjy commented on May 18, 2024

@weihuahuang 你环境上 runtime.GOOS 输出出来的值是什么呢?

from go-gin-example.

bighuangbee avatar bighuangbee commented on May 18, 2024

删除了项目,重新拉取的时候报错。
D:\server\gopath>go get github.com/EDDYCJY/go-gin-example

github.com/EDDYCJY/go-gin-example/vendor/github.com/fvbock/endless

src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:64:3: undefined: syscall.SIGUSR1
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:65:3: undefined: syscall.SIGUSR2
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:68:3: undefined: syscall.SIGTSTP
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:111:5: undefined: syscall.SIGUSR1
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:112:5: undefined: syscall.SIGUSR2
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:115:5: undefined: syscall.SIGTSTP
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:119:5: undefined: syscall.SIGUSR1
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:120:5: undefined: syscall.SIGUSR2
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:123:5: undefined: syscall.SIGTSTP
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:224:3: undefined: syscall.Kill
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:224:3: too many errors

D:\server\gopath>
D:\server\gopath>
D:\server\gopath>
D:\server\gopath>
D:\server\gopath>
D:\server\gopath>go get github.com/EDDYCJY/go-gin-example

github.com/EDDYCJY/go-gin-example/vendor/github.com/fvbock/endless

src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:64:3: undefined: syscall.SIGUSR1
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:65:3: undefined: syscall.SIGUSR2
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:68:3: undefined: syscall.SIGTSTP
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:111:5: undefined: syscall.SIGUSR1
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:112:5: undefined: syscall.SIGUSR2
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:115:5: undefined: syscall.SIGTSTP
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:119:5: undefined: syscall.SIGUSR1
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:120:5: undefined: syscall.SIGUSR2
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:123:5: undefined: syscall.SIGTSTP
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:224:3: undefined: syscall.Kill
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:224:3: too many errors

from go-gin-example.

eddycjy avatar eddycjy commented on May 18, 2024

@weihua2018 你应该

$ go get -u github.com/EDDYCJY/go-gin-example

from go-gin-example.

eddycjy avatar eddycjy commented on May 18, 2024

另外如果你是 windows 系统的话,应该把如下代码打开注释:https://github.com/EDDYCJY/go-gin-example/blob/master/main.go#L36-L46

把 endless 的相关代码给注释了:https://github.com/EDDYCJY/go-gin-example/blob/master/main.go#L48-L59

from go-gin-example.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.