For code that is in your project folder use path relative to
so if you have:
- Folder: MyProject (can be inside GOPATH/github or any other place) - app.yaml - Folder: MyCode (package mycode) - code1.go - Folder: MySubCode (package mysubcode) - code2.go
The imports should be like:
import ( "mycode" "mycode/mysubcode" )
Note that you do not specify the github or anything else above the
app.yaml for code that is is below or on the same level as app.yaml.
Update: I keep project folder outside of GOPATH. Like:
- ~ (user folder) - GOPATH folder - My GAE projects folder MyProject1
This way it works fine with both importing from GOPATH's like "github/" and from paths relative to app.yaml like "myproject/"