go run footer.go 的时候呢, go会依次去GOPATH 和GOROOT设置的对应路径下面找对应的包(目录和文件)
找的时候呢, 会在GoPATH 和GOROOT对应的目录后面再加一层路径 "/src/"哦
---------------------------------------------------------------------------------------------
https://stackoverflow.com/questions/32110524/go-run-cannot-find-package
0down votefavorite 1 |
I have a sample project setup based on this article. This is my directory structure:
I have set the
I am trying to run This is how I am running it:
These are the file contents.
I get the same error when I try to do Where am I going wrong with the project structure? |
-------------------------------------------------------------------------
3down voteaccepted |
That might be because of a typo:
You have:
|
||||||||||||
|