goapp二进制文件在哪里?

时间:2017-02-15 15:33:54

标签: google-app-engine go install

我对Golang的设置非常困惑。

我下载了go_appengine_sdk_darwin_amd64-1.9.48.zip

当我解压缩zip文件时,我找不到goapp二进制文件。

看起来goapp是一个用于运行本地GAE服务器的二进制文件,但我是golang的新手,只是按照教程:https://cloud.google.com/appengine/docs/go/getting-started/creating-guestbook#building_and_running_locally

$ ls go/bin/    

total 54560  
-rwxr-xr-x@ 1 bryan  staff   9884220 Feb 15 10:27 go  
-rwxr-xr-x@ 1 bryan  staff  15065500 Feb 15 10:27 godoc  
-rwxr-xr-x@ 1 bryan  staff   2976976 Feb 15 10:27 gofmt  

1 个答案:

答案 0 :(得分:0)

前言:如果您不确定" Go SDK" 以及" Google App Engine SDK for Go&#是什么34; 是你需要的,我推荐你这篇文章:Google Go SDK or Golang app?

编辑:以下答案使用Linux 64位版本,但我也尝试过OS-X 64位版本,它也是一样。

Go AppEngine SDK有自己独立的文件夹。它未安装到Go SDK中,您在goapp文件夹中找不到go/bin

当你解压缩Go AppEngine SDK zip文件时,它包含一个go_appengine文件夹,goapp可执行二进制文件就在godocgofmt内。

E.g:

wget https://storage.googleapis.com/appengine-sdks/featured/go_appengine_sdk_linux_amd64-1.9.48.zip
unzip go_appengine_sdk_linux_amd64-1.9.48.zip
ll

解包后的输出:

total 67224
drwxrwxr-x  3 myuser mygroup     4096 Feb 15 15:37 ./
drwxr-x--- 12 myuser mygroup     4096 Feb  7 00:10 ../
drwxr-xr-x  8 myuser mygroup     4096 Nov 29 19:29 go_appengine/
-rw-rw-r--  1 myuser mygroup 68822758 Dec  1 19:31 go_appengine_sdk_linux_amd64-1.9.48.zip

列出go_appengine/的内容:

ll go_appengine

输出:

-rwxr-xr-x  1 myuser mygroup  3127 Nov 29 19:29 appcfg.py
-rwxr-xr-x  1 myuser mygroup  3127 Nov 29 19:29 backends_conversion.py
-rw-r--r--  1 myuser mygroup   156 Nov 29 19:29 BUGS
-rwxr-xr-x  1 myuser mygroup  3127 Nov 29 19:29 bulkload_client.py
-rwxr-xr-x  1 myuser mygroup  3127 Nov 29 19:29 bulkloader.py
drwxr-xr-x 11 myuser mygroup  4096 Nov 29 19:29 demos
-rwxr-xr-x  1 myuser mygroup  2344 Nov 29 19:29 dev_appserver.py
-rwxr-xr-x  1 myuser mygroup  3127 Nov 29 19:29 download_appstats.py
-rwxr-xr-x  1 myuser mygroup  3127 Nov 29 19:29 endpointscfg.py
-rwxr-xr-x  1 myuser mygroup  1527 Nov 29 19:29 goapp
-rwxr-xr-x  1 myuser mygroup  1527 Nov 29 19:29 godoc
-rwxr-xr-x  1 myuser mygroup  1527 Nov 29 19:29 gofmt
drwxr-xr-x  6 myuser mygroup  4096 Nov 29 19:29 google
drwxr-xr-x  2 myuser mygroup  4096 Nov 29 19:29 gopath
drwxr-xr-x  6 myuser mygroup  4096 Nov 29 19:29 goroot
drwxr-xr-x 47 myuser mygroup  4096 Nov 29 19:29 lib
-rw-r--r--  1 myuser mygroup  5949 Nov 29 19:29 LICENSE
-rwxr-xr-x  1 myuser mygroup  2344 Nov 29 19:29 php_cli.py
-rwxr-xr-x  1 myuser mygroup  2344 Nov 29 19:29 _python_runtime.py
-rw-r--r--  1 myuser mygroup 17738 Nov 29 19:29 RELEASE_NOTES
-rw-r--r--  1 myuser mygroup   138 Nov 29 19:29 RELEASE_NOTES.python
-rwxr-xr-x  1 myuser mygroup  2115 Nov 29 19:29 run_tests.py
drwxr-xr-x  2 myuser mygroup  4096 Nov 29 19:29 tools
-rw-r--r--  1 myuser mygroup   221 Nov 29 19:29 VERSION
-rwxr-xr-x  1 myuser mygroup 11323 Nov 29 19:29 wrapper_util.py