emiru hasaki 2020-07-08 14:59 采纳率: 0%
浏览 353

golang go run找不到包

刚开始学golang,还有好多不懂的地方,求大神指点下怎么修改

图片说明图片说明图片说明

```D:\pro\source\src>go run HFish
HFish\core\protocol\ssh\gliderlabs\session.go:11:2: cannot find package "github.com/anmitsu/go-shlex" in any of:
D:\go\src\github.com\anmitsu\go-shlex (from $GOROOT)
D:\pro\pack\src\github.com\anmitsu\go-shlex (from $GOPATH)
D:\pro\source\src\github.com\anmitsu\go-shlex
D:\pro\pack\src\pkg\mod\src\github.com\anmitsu\go-shlex
HFish\utils\ip\ip.go:6:2: cannot find package "github.com/axgle/mahonia" in any of:
D:\go\src\github.com\axgle\mahonia (from $GOROOT)
D:\pro\pack\src\github.com\axgle\mahonia (from $GOPATH)
D:\pro\source\src\github.com\axgle\mahonia
D:\pro\pack\src\pkg\mod\src\github.com\axgle\mahonia
HFish\utils\json\ssh.go:4:2: cannot find package "github.com/bitly/go-simplejson" in any of:
D:\go\src\github.com\bitly\go-simplejson (from $GOROOT)
D:\pro\pack\src\github.com\bitly\go-simplejson (from $GOPATH)
D:\pro\source\src\github.com\bitly\go-simplejson
D:\pro\pack\src\pkg\mod\src\github.com\bitly\go-simplejson
HFish\core\protocol\httpx\http.go:5:2: cannot find package "github.com/elazarl/goproxy" in any of:
D:\go\src\github.com\elazarl\goproxy (from $GOROOT)
D:\pro\pack\src\github.com\elazarl\goproxy (from $GOPATH)
D:\pro\source\src\github.com\elazarl\goproxy
D:\pro\pack\src\pkg\mod\src\github.com\elazarl\goproxy
HFish\view\login\view.go:5:2: cannot find package "github.com/gin-contrib/sessions" in any of:
D:\go\src\github.com\gin-contrib\sessions (from $GOROOT)
D:\pro\pack\src\github.com\gin-contrib\sessions (from $GOPATH)
D:\pro\source\src\github.com\gin-contrib\sessions
D:\pro\pack\src\pkg\mod\src\github.com\gin-contrib\sessions
HFish\utils\setting\setting.go:33:2: cannot find package "github.com/gin-contrib/sessions/cookie" in any of:
D:\go\src\github.com\gin-contrib\sessions\cookie (from $GOROOT)
D:\pro\pack\src\github.com\gin-contrib\sessions\cookie (from $GOPATH)
D:\pro\source\src\github.com\gin-contrib\sessions\cookie
D:\pro\pack\src\pkg\mod\src\github.com\gin-contrib\sessions\cookie
HFish\utils\log\log.go:5:2: cannot find package "github.com/gin-gonic/gin" in any of:
D:\go\src\github.com\gin-gonic\gin (from $GOROOT)
D:\pro\pack\src\github.com\gin-gonic\gin (from $GOPATH)
D:\pro\source\src\github.com\gin-gonic\gin
D:\pro\pack\src\pkg\mod\src\github.com\gin-gonic\gin
HFish\core\dbUtil\dbUtil.go:4:2: cannot find package "github.com/go-sql-driver/mysql" in any of:
D:\go\src\github.com\go-sql-driver\mysql (from $GOROOT)
D:\pro\pack\src\github.com\go-sql-driver\mysql (from $GOPATH)
D:\pro\source\src\github.com\go-sql-driver\mysql
D:\pro\pack\src\pkg\mod\src\github.com\go-sql-driver\mysql
HFish\core\dbUtil\dbUtil.go:8:2: cannot find package "github.com/gohouse/gorose" in any of:
D:\go\src\github.com\gohouse\gorose (from $GOROOT)
D:\pro\pack\src\github.com\gohouse\gorose (from $GOPATH)
D:\pro\source\src\github.com\gohouse\gorose
D:\pro\pack\src\pkg\mod\src\github.com\gohouse\gorose
HFish\view\data\view.go:5:2: cannot find package "github.com/gorilla/websocket" in any of:
D:\go\src\github.com\gorilla\websocket (from $GOROOT)
D:\pro\pack\src\github.com\gorilla\websocket (from $GOPATH)
D:\pro\source\src\github.com\gorilla\websocket
D:\pro\pack\src\pkg\mod\src\github.com\gorilla\websocket
HFish\utils\ip\ip.go:13:2: cannot find package "github.com/ipipdotnet/ipdb-go" in any of:
D:\go\src\github.com\ipipdotnet\ipdb-go (from $GOROOT)
D:\pro\pack\src\github.com\ipipdotnet\ipdb-go (from $GOPATH)
D:\pro\source\src\github.com\ipipdotnet\ipdb-go
D:\pro\pack\src\pkg\mod\src\github.com\ipipdotnet\ipdb-go
HFish\core\protocol\ftp\graval\commands.go:5:2: cannot find package "github.com/jehiah/go-strftime" in any of:
D:\go\src\github.com\jehiah\go-strftime (from $GOROOT)
D:\pro\pack\src\github.com\jehiah\go-strftime (from $GOPATH)
D:\pro\source\src\github.com\jehiah\go-strftime
D:\pro\pack\src\pkg\mod\src\github.com\jehiah\go-strftime
HFish\core\dbUtil\dbUtil.go:5:2: cannot find package "github.com/mattn/go-sqlite3" in any of:
D:\go\src\github.com\mattn\go-sqlite3 (from $GOROOT)
D:\pro\pack\src\github.com\mattn\go-sqlite3 (from $GOPATH)
D:\pro\source\src\github.com\mattn\go-sqlite3
D:\pro\pack\src\pkg\mod\src\github.com\mattn\go-sqlite3
HFish\core\pool\pool.go:5:2: cannot find package "github.com/panjf2000/ants" in any of:
D:\go\src\github.com\panjf2000\ants (from $GOROOT)
D:\pro\pack\src\github.com\panjf2000\ants (from $GOPATH)
D:\pro\source\src\github.com\panjf2000\ants
D:\pro\pack\src\pkg\mod\src\github.com\panjf2000\ants
HFish\utils\cache\cache.go:4:2: cannot find package "github.com/patrickmn/go-cache" in any of:
D:\go\src\github.com\patrickmn\go-cache (from $GOROOT)
D:\pro\pack\src\github.com\patrickmn\go-cache (from $GOPATH)
D:\pro\source\src\github.com\patrickmn\go-cache
D:\pro\pack\src\pkg\mod\src\github.com\patrickmn\go-cache
HFish\core\protocol\tftp\libs\receiver.go:11:2: cannot find package "github.com/pin/tftp/netascii" in any of:
D:\go\src\github.com\pin\tftp\netascii (from $GOROOT)
D:\pro\pack\src\github.com\pin\tftp\netascii (from $GOPATH)
D:\pro\source\src\github.com\pin\tftp\netascii
D:\pro\pack\src\pkg\mod\src\github.com\pin\tftp\netascii
HFish\core\protocol\ssh\gliderlabs\agent.go:10:2: cannot find package "golang.org/x/crypto/ssh" in any of:
D:\go\src\golang.org\x\crypto\ssh (from $GOROOT)
D:\pro\pack\src\golang.org\x\crypto\ssh (from $GOPATH)
D:\pro\source\src\golang.org\x\crypto\ssh
D:\pro\pack\src\pkg\mod\src\golang.org\x\crypto\ssh
HFish\core\protocol\ssh\ssh.go:5:2: cannot find package "golang.org/x/crypto/ssh/terminal" in any of:
D:\go\src\golang.org\x\crypto\ssh\terminal (from $GOROOT)
D:\pro\pack\src\golang.org\x\crypto\ssh\terminal (from $GOPATH)
D:\pro\source\src\golang.org\x\crypto\ssh\terminal
D:\pro\pack\src\pkg\mod\src\golang.org\x\crypto\ssh\terminal
HFish\core\protocol\tftp\libs\server.go:10:2: cannot find package "golang.org/x/net/ipv4" in any of:
D:\go\src\golang.org\x\net\ipv4 (from $GOROOT)
D:\pro\pack\src\golang.org\x\net\ipv4 (from $GOPATH)
D:\pro\source\src\golang.org\x\net\ipv4
D:\pro\pack\src\pkg\mod\src\golang.org\x\net\ipv4
HFish\core\protocol\tftp\libs\server.go:11:2: cannot find package "golang.org/x/net/ipv6" in any of:
D:\go\src\golang.org\x\net\ipv6 (from $GOROOT)
D:\pro\pack\src\golang.org\x\net\ipv6 (from $GOPATH)
D:\pro\source\src\golang.org\x\net\ipv6
D:\pro\pack\src\pkg\mod\src\golang.org\x\net\ipv6
HFish\utils\send\gomail.go:4:2: cannot find package "gopkg.in/gomail.v2" in any of:
D:\go\src\gopkg.in\gomail.v2 (from $GOROOT)
D:\pro\pack\src\gopkg.in\gomail.v2 (from $GOPATH)
D:\pro\source\src\gopkg.in\gomail.v2
D:\pro\pack\src\pkg\mod\src\gopkg.in\gomail.v2
HFish\utils\conf\conf.go:4:2: cannot find package "gopkg.in/ini.v1" in any of:
D:\go\src\gopkg.in\ini.v1 (from $GOROOT)
D:\pro\pack\src\gopkg.in\ini.v1 (from $GOPATH)
D:\pro\source\src\gopkg.in\ini.v1
D:\pro\pack\src\pkg\mod\src\gopkg.in\ini.v1

  • 写回答

1条回答 默认 最新

  • zqbnqsdsmd 2020-08-02 11:57
    关注
    评论

报告相同问题?

悬赏问题

  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?