google-cloud-functions-go
google-cloud-functions-go copied to clipboard
Created Docker image for Kelsey's tools
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
I found that using r, err := http.NewRequest(request.Method, request.URL, bytes.NewBufferString(request.Body))
as in https://github.com/kelseyhightower/google-cloud-functions-go/blob/master/shim/handlers.go#L68, did not work, at least it failed to work in my experiments. however using the proper http request r, err := http.NewRequest(request.Method, request.URL, bytes.NewBufferString(request.Body))
worked for me.