I have a package in Google Cloud project. How do I import my package in GOogle cloud?
foo // my package
main.go
Then in main.go
How do I know what gopath
I have in Google cloud console?
How would you import foo
package from main.go
?
Can I just do import "foo"
in main.go
?
When you deploy your application, the goapp tool will bundle all the dependencies from your local GOPATH. If the app runs with your local GOPATH with goapp serve
, it should run on appengine without additional work. See here for more information: https://blog.golang.org/the-app-engine-sdk-and-workspaces-gopath
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.