Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the correct way to install Google Go and App Engine SDK?

I've been playing with Go and GAE using GoClipse for a bit now on my Mac (since they won't run on Windows). Recently I noticed that when I goinstall a package from github it had some problems working. I figured I'd reinstall the whole thing and set it up properly. Go installed nicely, but when it came to integrating the GAE SDK it took me a couple hours of searching and came up with only this article: http://code.google.com/p/goclipse/wiki/GoClipseAndTheGoogleAppEngine But since it tell you to move files from the go/scr folder (where goinstall installs packages), I reckon it is not the correct way to set everything up.

Can anyone give me a clear, easy to follow step-by-step guide on how to install both Go and GAE SDK on a Mac?

like image 375
ThePiachu Avatar asked Sep 29 '11 15:09

ThePiachu


People also ask

What are the steps to install Google App Engine?

Download the Windows installer – the simplest thing is to download it to your Desktop or another folder that you remember. Double Click on the GoogleApplicationEngine installer. Click through the installation wizard, and it should install the App Engine.

How do I install Google SDK on Windows?

Download the installer from the link provided: https://cloud.google.com/sdk/docs/quickstart-windows. The installer is a GUI-based utility which will install the requisites for the SDK, and the SDK with default configuration.

What is SDK in Google App Engine?

Google Cloud SDK: Tools for all languages. Google Cloud CLI lets you manage resources and services from the command line. It also contains service and data emulators to speed up local development. Cloud Shell lets you code or use a terminal directly in the web-browser.


1 Answers

The short answer is that Go and the GAE SDK do not integrate in the way that (I think) you are looking for. The GAE SDK includes its own version of the Go toolchain that differs in some important ways to the standard tools. Those differences are deep enough that it is unlikely you will derive much utility from trying to unify the two. Here are the big differences:

  • GAE does not support some packages from the standard lib e.g. "unsafe"
  • GAE does not support CGO
  • GAE often lags the main distribution by one or more major versions
  • You cannot use any binary libraries (go or otherwise) in a GAE project (you need source for everything)
  • goinstall is not intended for use with GAE projects

Because of this I treat my GAE and non-GAE tools as completely separate. If you're only doing GAE development, you could do without the standard tools altogether.

like image 163
laslowh Avatar answered Oct 07 '22 02:10

laslowh