google-cloud-functions-go icon indicating copy to clipboard operation
google-cloud-functions-go copied to clipboard

How to use datastore in go?

Open squallcx opened this issue 7 years ago • 0 comments

how to no need for verification use google datastore like this: https://github.com/GoogleCloudPlatform/nodejs-docs-samples

func F(w http.ResponseWriter, r *http.Request) {                                               
    ctx = r.Context() 

this way failure

panic: interface conversion: http.http2StreamError is not http.http2writeFramer: missing method writeFrame

goroutine 1 [running]:
plugin.lastmoduleinit(0xb95400, 0xc42000e030, 0xb96430, 0x17, 0xb8fe00)
	/usr/lib/go/src/runtime/plugin.go:60 +0x5e6
plugin.open(0x7efdd1e0bfc3, 0xc, 0x0, 0x0, 0x0)
	/usr/lib/go/src/plugin/plugin_dlopen.go:72 +0x25d
plugin.Open(0x7efdd1e0bfc3, 0xc, 0xb, 0x8153bf, 0xc)
	/usr/lib/go/src/plugin/plugin.go:30 +0x35
main.main()
	/home/xxx/go/src/github.com/kelseyhightower/google-cloud-functions-go/shim/main.go:38 +0x14d

squallcx avatar Apr 26 '17 10:04 squallcx