问答详情
源自:3-2 开始一个Web程序

GitHub上下载的程序Build后报错

报错内容:main.go:5:2: cannot find package "github.com/leeeboo/wechat/wx" in any of:
        D:\Go\src\github.com\leeeboo\wechat\wx (from $GOROOT)
        ($GOPATH not set)

提问者:慕圣6277230 2018-07-26 16:58

个回答

  • 南唐遗少
    2018-07-31 15:15:02
    已采纳

    cd 到 代码的根目录再进行编译