简体   繁体   English

安装Google Go和App Engine SDK的正确方法是什么?

[英]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). 我现在在Mac上使用GoClipse玩Go和GAE了一段时间(因为它们不能在Windows上运行)。 Recently I noticed that when I goinstall a package from github it had some problems working. 最近我注意到当我从github上安装一个包时,它有一些问题。 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. 安装得很好,但是当集成GAE SDK时,我花了几个小时的时间进行搜索,只得到了这篇文章: http//code.google.com/p/goclipse/wiki/GoClipseAndTheGoogleAppEngine但是因为它告诉我们你要从go / scr文件夹中移动文件(goinstall安装软件包的地方),我认为这不是设置所有内容的正确方法。

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? 任何人都可以给我一个清晰,易于遵循的分步指南,指导如何在Mac上安装Go和GAE SDK?

The short answer is that Go and the GAE SDK do not integrate in the way that (I think) you are looking for. 简短的回答是Go和GAE SDK没有按照(我认为)您正在寻找的方式集成。 The GAE SDK includes its own version of the Go toolchain that differs in some important ways to the standard tools. GAE SDK包含自己的Go工具链版本,它在某些重要方面与标准工具不同。 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 eg "unsafe" GAE不支持标准库中的某些包,例如“不安全”
  • GAE does not support CGO GAE不支持CGO
  • GAE often lags the main distribution by one or more major versions GAE经常滞后于一个或多个主要版本的主要发行版
  • You cannot use any binary libraries (go or otherwise) in a GAE project (you need source for everything) 您不能在GAE项目中使用任何二进制库(go或其他)(您需要所有内容的源代码)
  • goinstall is not intended for use with GAE projects goinstall不适用于GAE项目

Because of this I treat my GAE and non-GAE tools as completely separate. 因此,我将GAE和非GAE工具视为完全独立。 If you're only doing GAE development, you could do without the standard tools altogether. 如果您只进行GAE开发,则可以完全不使用标准工具。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM