How to import local packages in go?
Well, I figured out the problem. Basically Go starting path for import is $HOME/go/src So I just needed to add myapp in front of the package names, that is, the import should be: import ( “log” “net/http” “myapp/common” “myapp/routers” )