GCPの公式チュートリアルネ申すぎぃ
前回の記事を書いた後に「Google Cloud Platform での Go」を見つけました。Go言語でGCPを使いたい私のようなGopherにとって欲しい情報がぎゅっと詰まった感のある素敵ページです。
今回はこのGo言語クイックスタートの中でGKE用に用意されている「Kubernetes Engine での Go Bookshelf の実行」を実践していきたいと思いますʕ◔ϖ◔ʔ
- Create an account with https://cloud.google.com.
- Create a project.
- Install the Cloud SDK on your system.
https://blog.golang.org/appengine-go111
怪しいプログラム (PUP): Win32.Application.FusionCore.D (エンジン B)
エンジン: Engine A: AVA 25.17019, Engine B: GD 25.12239
100 %ピュアGo
な実装を行っています。(だって私、Go言語も go gopher も大好きなんだもの ʕ ◔ϖ◔ʔ )gopherjs serve --tags=example
$ gopherjs.exe serve --tags=example serving at http://localhost:8080 and on port 8080 of any available addresses /src/syscall/syscall_nonlinux.go:5:18: undeclared name: SYS_EXIT /src/syscall/syscall.go:53:39: too few arguments in call to Syscall /src/syscall/syscall_nonlinux.go:5:18: undeclared name: SYS_EXIT /src/syscall/syscall.go:53:39: too few arguments in call to Syscall /src/syscall/syscall_nonlinux.go:5:18: undeclared name: SYS_EXIT /src/syscall/syscall.go:53:39: too few arguments in call to Syscall
package main | |
import ( | |
"log" | |
"os" | |
) | |
const ( | |
exitCodeOK int = iota | |
exitCodeFailed | |
) | |
func main() { | |
os.Exit(run(os.Args)) | |
} | |
func run(args []string) int { | |
err := work() | |
if err != nil { | |
log.Println("Failed to execute the work:", err) | |
return exitCodeFailed | |
} | |
return exitCodeOK | |
} | |
func work() error { | |
return nil | |
} |