Google Cloud Function tutorial and hacks to enable the use of Go.
by kelseyhightowerGo
Last 12 weeks · 0 commits
2 of 6 standards met
I am trying to create a functions.so on ubuntu 14.04 with go1.11 & seeing following. Is there anything additional I need to do ? fatal error: runtime: no plugin module data goroutine 1 [running]: runtime.throw(0x81b802, 0x1e) /usr/local/go/src/runtime/panic.go:596 +0x95 fp=0xc420059a90 sp=0xc420059a70 plugin.lastmoduleinit(0xeb3420, 0xc42000e038, 0xeb4480, 0x3a, 0xb8fde0) /usr/local/go/src/runtime/plugin.go:13 +0xc50 fp=0xc420059bc0 sp=0xc420059a90 plugin.open(0x7fff974948d9, 0xc, 0x0, 0x0, 0x0) /usr/local/go/src/plugin/plugin_dlopen.go:72 +0x25d fp=0xc420059e00 sp=0xc420059bc0 plugin.Open(0x7fff974948d9, 0xc, 0xb, 0x8155b4, 0xc) /usr/local/go/src/plugin/plugin.go:30 +0x35 fp=0xc420059e38 sp=0xc420059e00 main.main() /home/khightower/go/src/github.com/kelseyhightower/google-cloud-functions-go/shim/main.go:38 +0x14d fp=0xc420059f88 sp=0xc420059e38 runtime.main() /usr/local/go/src/runtime/proc.go:185 +0x20a fp=0xc420059fe0 sp=0xc420059f88 runtime.goexit() /usr/local/go/src/runtime/asm_amd64.s:2197 +0x1 fp=0xc420059fe8 sp=0xc420059fe0 goroutine 17 [syscall, locked to thread]: runtime.goexit() /usr/local/go/src/runtime/asm_amd64.s:2197 +0x1
Thanks Kelsey, this is really cool. I created a simple Docker image for Go 1.8.1 and Kelsey's cli tools. https://hub.docker.com/r/barl3yb3ar/go1.8.1-gcf/ Here is my how-to, but the HTTP API does not work yet. Should be simple. Anybody see anything I'm missing? https://github.com/markuscraig/google-cloud-functions-examples/tree/master/go_hello_http Thanks! M
Repository: kelseyhightower/google-cloud-functions-go. Description: Google Cloud Function tutorial and hacks to enable the use of Go. Stars: 183, Forks: 12. Primary language: Go. Languages: Go (99.3%), Shell (0.7%). License: Apache-2.0. Open PRs: 0, open issues: 5. Last activity: 9y ago. Community health: 42%. Top contributors: kelseyhightower.