构建约束应用引擎golang

Im pretty new to go and to the the app engine ,

I got this error cannot find package "appengine" .

so i researched a little bit and i found out about build constraint
cannot find package "appengine/cloudsql"

I tried to solve it by this commands .

 go build  -v -tags  +build appengine

But i got the same error package appengine: cannot find package "appengine" .

I can run the goapp server and deploy app to the app engine

But i cant build or get the auto complete of the app engine library

thanks,

miki

You just need to use -tags appengine, and in the file that needs to just work on appengine you can start it with:

// +build appengine

package someName