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

when I run go run main.go, only get 'cannot find package "GoProject/routers"' #1

Closed
moooofly opened this issue Jul 30, 2019 · 2 comments

Comments

@moooofly
Copy link

[#94#root@ubuntu-dev /go/src/github.com/Mindinventory/Golang-Project-Structure]$go version
go version go1.12.6 linux/amd64
[#95#root@ubuntu-dev /go/src/github.com/Mindinventory/Golang-Project-Structure]$
[#95#root@ubuntu-dev /go/src/github.com/Mindinventory/Golang-Project-Structure]$go run main.go 
main.go:4:2: cannot find package "GoProject/routers" in any of:
        /usr/local/go/src/GoProject/routers (from $GOROOT)
        /go/src/GoProject/routers (from $GOPATH)
[#96#root@ubuntu-dev /go/src/github.com/Mindinventory/Golang-Project-Structure]$
@firmanalams
Copy link

replace GoProject with your folder project name

@moooofly
Copy link
Author

thanks

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