Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

作者,您好,我启动运行报如下错误,请指点一下,谢谢 #13

Open
sslazio2009 opened this issue Jan 14, 2020 · 1 comment

Comments

@sslazio2009
Copy link

root@server:/data/go/src/github.com/it234/goapp/cmd/manageweb# go run main.go
main.go:4:2: cannot find package "goapp/internal/app/manageweb" in any of:
/data/go/src/github.com/it234/goapp/vendor/goapp/internal/app/manageweb (vendor tree)
/usr/local/go/src/goapp/internal/app/manageweb (from $GOROOT)
/data/go/src/goapp/internal/app/manageweb (from $GOPATH)

@it234
Copy link
Owner

it234 commented Jan 14, 2020

你好,
方法1:你开启GO MOD模式;
方法2:你把goapp整个目录移动到gopath/src/goapp目录下;
方法3:你重新down代码我做了gopath和go mod兼容处理;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants