doumubi6784 2019-03-05 10:28
浏览 1137

如何运行从github下载的golang项目

i have downloaded a project from github for some testing. the code is in go language. when i edited the code and run , many errors occoured. I have tried to run project using D:\go>go run demo command. how should i run the project?

here are the errors:

D:\go>go run hardentools-master
bin\src\hardentools-master\powershell.go:20:2: cannot find package "errors" in any of:
        D:\go\bin\src\errors (from $GOROOT)
        C:\Users\admin\go\src\errors (from $GOPATH)
bin\src\hardentools-master\gui.go:20:2: cannot find package "flag" in any of:
        D:\go\bin\src\flag (from $GOROOT)
        C:\Users\admin\go\src\flag (from $GOPATH)
bin\src\hardentools-master\adobe.go:20:2: cannot find package "fmt" in any of:
        D:\go\bin\src\fmt (from $GOROOT)
        C:\Users\admin\go\src\fmt (from $GOPATH)
bin\src\hardentools-master\gui.go:26:2: cannot find package "github.com/lxn/walk" in any of:
        D:\go\bin\src\github.com\lxn\walk (from $GOROOT)
        C:\Users\admin\go\src\github.com\lxn\walk (from $GOPATH)
bin\src\hardentools-master\gui.go:27:2: cannot find package "github.com/lxn/walk/declarative" in any of:
        D:\go\bin\src\github.com\lxn\walk\declarative (from $GOROOT)
        C:\Users\admin\go\src\github.com\lxn\walk\declarative (from $GOPATH)
bin\src\hardentools-master\adobe.go:22:2: cannot find package "golang.org/x/sys/windows/registry" in any of:
        D:\go\bin\src\golang.org\x\sys\windowsegistry (from $GOROOT)
        C:\Users\admin\go\src\golang.org\x\sys\windowsegistry (from $GOPATH)
bin\src\hardentools-master\main.go:73:2: cannot find package "io" in any of:
        D:\go\bin\src\io (from $GOROOT)
        C:\Users\admin\go\src\io (from $GOPATH)
bin\src\hardentools-master\gui.go:22:2: cannot find package "io/ioutil" in any of:
        D:\go\bin\src\io\ioutil (from $GOROOT)
        C:\Users\admin\go\src\io\ioutil (from $GOPATH)
bin\src\hardentools-master\main.go:74:2: cannot find package "log" in any of:
        D:\go\bin\src\log (from $GOROOT)
        C:\Users\admin\go\src\log (from $GOPATH)
bin\src\hardentools-master\gui.go:23:2: cannot find package "os" in any of:
        D:\go\bin\src\os (from $GOROOT)
        C:\Users\admin\go\src\os (from $GOPATH)         
  • 写回答

1条回答 默认 最新

  • dongzituo5530 2019-03-05 12:08
    关注

    You can check the release page, you have an executable ready to use : https://github.com/securitywithoutborders/hardentools/releases

    评论

报告相同问题?

问题事件

  • 请详细说明问题背景 6月18日

悬赏问题

  • ¥15 微信会员卡等级和折扣规则
  • ¥15 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表
  • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分