GoLang / Google App Engine - Directory Structure

I started developing an application with GoLang and GAE, but it's hard for me to find a way to link files. So I save GoLang files so far (before using GAE)

-golang --bin --pkg --src ---breinbaas.nl ----lib -----package1 -----package2 

If I want to develop an application for GAE, I would like to put it in

 -golang --src ---breinbaas ----deploy -----mygae_app 

But how can I use the files in the lib directory?

Is there a way to use go files in the golang / src / breinbaas / lib directory? I keep getting an error not found in the package, and the only way to solve this problem is to copy the lib directory to golang / src / breinbaas / deploy / mygae-app, but this will mean that copying the source files to multiple locations is very bad for consistency.

thanks in advance! Rob

+4
source share
1 answer

The Go App Engine SDK does not support downloading packages from your GOPATH, so copying is now your only option.

Feel free to create a problem about this in Google App Engine problem tracking .

+2
source

Source: https://habr.com/ru/post/1438891/


All Articles