为了账号安全,请及时绑定邮箱和手机立即绑定

Golang Webapp 种子设置失败

Golang Webapp 种子设置失败

Go
慕田峪7331174 2021-09-10 15:03:38
我按照https://auth0.com/docs/server-platforms/golang 中的步骤操作, 并尝试在 Windows 7 机器上设置种子项目。我有ABLE做“去拿”以下;github.com/gorilla/mux, golang.org/x/oauth2,github.com/astaxie/beego/session,get github.com/codegangsta/negroni在这些之后,当我运行 go install 时出现错误;C:\Users\TestUser\Documents\go\auth0-golang-sample>go installmain.go:4:2: cannot find package "github.com/auth0/auth0-go/examples/regular-web-app/app" in any of: C:\Go\src\pkg\github.com\auth0\auth0-go\examples\regular-web-app\app (from $GOROOT)        C:\Users\TestUser\Documents\go\src\github.com\auth0\auth0-go\examples\regular-web-app\app (from $GOPATH)server.go:4:2: cannot find package "github.com/auth0/auth0-go/examples/regular-web-app/routes/callback" in any of: C:\Go\src\pkg\github.com\auth0\auth0-go\examples\regular-web-app\routes\callback (from $GOROOT)..........当我尝试“ go get github.com/auth0/auth0-go/”时出现以下错误C:\Users\TestUser\Documents\go\auth0-golang-sample>go get github.com/auth0/auth0-go/Username for 'https://github.com': userPassword for 'https://user@github.com':# cd .; git clone https://github.com/auth0/auth0-go C:\Users\TestUser\Documents\go\src\github.com\auth0\auth0-goCloning into 'C:\Users\TestUser\Documents\go\src\github.com\auth0\auth0-go'...remote: Repository not found.fatal: repository 'https://github.com/auth0/auth0-go/' not foundpackage github.com/auth0/auth0-go: exit status 128但是,当我尝试去获取 github.com/auth0/auth0-golang/C:\Users\TestUser\Documents\go\auth0-golang-sample>go get github.com/auth0/auth0-golang/package github.com/auth0/auth0-golang        imports github.com/auth0/auth0-golang        imports github.com/auth0/auth0-golang: no buildable Go source files in C:\Users\TestUser\Documents\go\src\github.com\auth0\auth0-golang
查看完整描述

2 回答

  • 2 回答
  • 0 关注
  • 160 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信