英文:
I want to develop in Go on Windows and deploy to Google App Engine
问题
我想使用Go语言(go-lang)开发我的应用程序,并使用Google App Engine来运行它,我在Windows上使用IntelliJ。我该如何做到这一点?
英文:
I want to develop in the Go Language (go-lang) using Google App Engine to run my app and I use IntelliJ on Windows. How can I do this?
答案1
得分: 5
如果您使用官方安装程序,在Windows上安装和运行Go非常容易。
编辑:最新的Zeus beta现在支持Go的构建、格式化和运行命令,并且还支持Go的智能感知(即自动完成)。
英文:
If you use the official installer, it is very easy to get Go up and running on Windows.
Edit: The latest Zeus beta now has support for the Go Build, Format and Run commands and also does Go initellisene (i.e. auto complete).
答案2
得分: 3
编辑,2012年6月:截至1.7版本,现在已经有对Windows的实验性支持:
https://developers.google.com/appengine/downloads
Go App-Engine开发服务器仅适用于Linux和Mac 1。Go语言适用于Windows,但不适用于app-engine工具。我想,将GAE开发服务器移植到Windows应该是可能的,因为它只使用了Python、Go和SQLite,但我认为还没有人这样做。
当然,您可以运行Linux虚拟机,或者远程连接到Linux服务器进行开发。如果您的编辑器支持,甚至可以在Windows上使用sftp进行编辑。
[1 https://developers.google.com/appengine/downloads#Google_App_Engine_SDK_for_Go](https://developers.google.com/appengine/downloads#Google_App_Engine_SDK_for_Go)
英文:
Edit, Jun 2012: As at the 1.7 version, there is now experimental support for windows:
https://developers.google.com/appengine/downloads
The Go App-Engine development server is available for Linux and Mac only 1. The Go language is available for Windows, but not the app-engine tools. I imagine it would be possible to port the GAE dev server to run under windows, because it just uses python, go and sqlite, but I don't think anyone has done so.
Of course you can run a linux virtual machine, or remote into a linux server to do the development. You could even edit in windows using sftp if your editor supports it.
[1 https://developers.google.com/appengine/downloads#Google_App_Engine_SDK_for_Go](https://developers.google.com/appengine/downloads#Google_App_Engine_SDK_for_Go)
答案3
得分: 2
你可以在这里找到适用于Windows的Golang构建版本。Golang主要专注于类Unix操作系统(Golang开发人员来自贝尔实验室),但在为appengine编写应用程序时,你不会遇到任何问题,因为你使用的是Windows版本。appengine平台不允许你像操作文件一样操作,而是使用appengine的数据存储/大对象存储来存储数据。Windows版本的Golang主要与操作系统功能相关,但在appengine上不会有任何问题,因为你不会使用它们。
至于在Windows上具有代码补全功能的IDE,goclipse可能是最方便的选择;它附带了Golang插件和自动补全功能。Golang本身附带了最流行编辑器(vim、emacs、sublime等)的插件/配置。如果你愿意花点时间设置,你可以使用nsf的gocode在几乎任何流行的编辑器中实现自动补全。
Golang的开发速度非常快;直到它支持Go 1,我实际上都不想使用appengine。在r60和当前的Golang之间有一些重大变化。大多数库都在跟进快速发展的Golang,这导致在使用r60 Golang时会遇到一些问题。
英文:
You can find golang builds for Windows here. Golang is primarily focusing on unix-like OSs (golang devs are from bell labs), but while writing an application for appengine you won't hit any issues because you're using a Window's version. The appengine platform doesn't let you do things like manipulate files: instead you use the appengine's datastore/blobstore to store things. The main issues the Window's golang port are related to simply operating system functionality and since you won't be using any on appengine, there's no issue.
As for an IDE on Windows that has code completion, goclipse probably has the most "out of the box"; it's distributed with golang plugins and autocompletion. Golang itself is distributed with plug-ins/configs for the most popular editors (vim, emacs, sublime, etc...). You can use pretty much any popular editor with nsf's gocode for autocompletion if you want to take a little time to set things up.
The development for golang is pretty quick; I'm actually turned off from using appengine until it supports Go 1. There are some big changes between r60 and the current golang. Most libraries are keeping up to date with the quick golang development, which causes some pains using r60 golang.
2: https://github.com/nsf/gocode "nsf's gocode"
答案4
得分: 1
有一个go工具集的Windows版本,你需要从golang.org安装它。
你可以从goclipse开始。如果你不喜欢Eclipse,你可以使用Emacs(从gnu.org获取)来进行Windows开发;或者使用你喜欢的任何编辑器。
目前,Windows上的Go还没有完全支持。另一个选择是下载Virtual Box,在虚拟机上安装Linux,并将其作为你的开发机器使用。
英文:
There is a Windows version of the go toolset, you will have to install that from <a href="http://code.google.com/p/go-wiki/wiki/WindowsSupport">golang.org</a>.
You can start with <a href="https://code.google.com/p/goclipse/">goclipse</a>. If you don't like Eclipse, then you can use Emacs (available from gnu.org) for Windows; or any editor that you like.
Go on Windows isn't fully supported yet. Another option would be to download Virtual Box; install Linux on a virtual machine and use that as your development machine.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论