go run footer.go 的時候呢, go會依次去GOPATH 和GOROOT設置的對應路徑下面找對應的包(目錄和文件)
找的時候呢, 會在GoPATH 和GOROOT對應的目錄后面再加一層路徑 "/src/"哦
---------------------------------------------------------------------------------------------
https://stackoverflow.com/questions/32110524/go-run-cannot-find-package
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:
|
||||||||||||
|