Google Go SDK或Golang应用程序? [英] Google Go SDK or Golang app?

查看:133
本文介绍了Google Go SDK或Golang应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有点困惑。我已经遵循了Google App Engine和GoLang教程。我非常喜欢GoLang如何使用工作区。 我的问题是,Google的Go SDK和Golang的Go应用程序有什么不同? Google的Go SDK是否包含GoLang中的所有内容,然后是一些?



很抱歉,如果以前有人问过这个问题,但无法弄清楚如何有效搜索类似的问题。 p>

参考资料:

前往



前往(或Golang)是一种编程语言。使用Go可以构建编译为本机可执行二进制文件的任何应用程序。您可以在自己的计算机上运行已编译的应用程序。您可以使用Go甚至Web应用程序开发各种应用程序。 Go标准库包含一个内置的Web服务器,因此如果您想在Go中开发Web应用程序,则不需要任何其他Web服务器来部署您的Web应用程序,Go应用程序能够为Web服务请求。



要在Go语言编程中开发应用程序,您需要 Go SDK 。 Go SDK包含将Go源代码编译为可执行二进制文件的工具。 Go SDK还包含许多预先编写的库,这是您开发应用程序时可以使用的标准库。

Google App Engine



Google App Engine(GAE)作为服务变形(PaaS)。这意味着他们为您提供了一个平台和服务,您可以在其中运行您开发的(网络)应用程序。您不必担心服务器如何设置,您不必担心维护。您只需编写您的应用程序,该应用程序可能会使用该平台提供的特殊服务,您可以上传或部署它,其余部分由平台负责。



Google App Engine允许您使用多种语言编写您的(网络)应用程序,包括Python,Java,PHP,Go,Node,Ruby等。

您可以使用Go编程语言编写您想在GAE平台上运行的应用程序。由于安全性和可维护性的原因,通常在这样的平台上运行的应用程序(如GAE)会被沙盒化。因此,从编程语言及其为您的应用程序选择的标准库中可以使用什么或如何使用,存在一些限制。为了使它成为可能,并简化开发您的GAE应用需要 Google App Engine SDK (每种语言都有一个)。为了让您的GAE应用在Go 中的开发成为可能,并且必须特别针对 要安装Go SDK来开发GAE Go应用程序,因为GAE SDK for Go包含稍微修改的Go SDK。它被修改为实现沙盒限制,并且还包含用于使用GAE平台中可用的不同服务的API库,例如数据存储 Mail API 用于发送电子邮件等。

GAE SDK包含用于在本地编译和测试GAE应用程序的工具。它模仿现场GAE平台的环境,因此您可以尝试生产中可用的大部分服务。



GAE SDK还包含直接部署您的工具一旦你认为它已经准备就绪,你就可以在GAE平台上使用它,或者你想在现场环境中试用它。


I'm a bit confused. I've followed both the Google App Engine and GoLang tutorials. I really like how GoLang uses workspaces. Neither mention each other or how they relate though.

My questions is, what is the difference between Google's Go SDK and Golang's Go app. Does Google's Go SDK include everything in GoLang and then some?

Sorry if it's been asked before, but couldn't figure out how to effectively search for similar questions.

References:

解决方案

Go

Go (or Golang) is a programming language. Using Go you can build "any" applications that compile into native executable binaries. You can run the compiled apps on your own computer. You can develop all kinds of apps using Go, even web applications. The Go standard library contains a built-in web server, so if you want to develop a web application in Go, you don't need any other web server that you would deploy your web app into, the Go app is capable to serve web requests on its own.

To develop applications in the Go programming langauge, you need the Go SDK. The Go SDK contains tools to compile your Go source code into an executable binary. The Go SDK also contains many pre-written libraries, the standard library which you can use when you develop your application.

Google App Engine

Google App Engine (GAE) is a Patform as a service (PaaS). Which means they provide you a platform and services where you can run a (web) application which you develop. You don't have to worry about how servers are set up, you don't have to worry about their maintenance. You just write your app which may use special services that the platform provides out of the box, you upload or deploy it, and the rest is taken care of by the platform.

Google App Engine allows you to write your (web) app in several languages, including Python, Java, PHP, Go, Node, Ruby etc.

You may write the app you want to run on GAE platform in the Go programming language. Usually apps running on such a platform (like GAE) are sandboxed for security and maintainability reasons. So there are some limitations of what or how you can use from the programming language and its standard library you choose for your app.

To make it possible and ease the development of your GAE app, you need the Google App Engine SDK (there is one for each language). To make it possible and ease the development of your GAE app in Go, you need specifically the Google App Engine SDK for Go.

However, note that the GAE SDK for Go is built on the Go SDK, you don't need to have Go SDK installed to develop GAE Go app, because the GAE SDK for Go contains a slightly modified Go SDK. It is modified to implement the sandbox limitations, and also to contain libraries which are the API to use different services available in the GAE platform, such as the Datastore, Mail API for sending emails etc.

The GAE SDK contains tools to compile and test your GAE app locally. It mimics the environment of the live GAE platform, so you can try out most of the services that are available in production.

The GAE SDK also contains tools to directly deploy your app to GAE platform once you think it's ready, or you want to try it in the live environment.

这篇关于Google Go SDK或Golang应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆