googlearchive / cloud-functions-go

Unofficial Native Go Runtime for Google Cloud Functions
Apache License 2.0
423 stars 44 forks source link

Can't get this package. #41

Closed ando-masaki closed 6 years ago

ando-masaki commented 6 years ago

I can't get this package for following reason.

$ go get github.com/GoogleCloudPlatform/cloud-functions-go
../../../github.com/GoogleCloudPlatform/cloud-functions-go/main.go:22:2: local import "./nodego" in non-local package

How to use this package?

ssttevee commented 6 years ago

This package is meant to live outside of the GOPATH. So, you have to git clone this repo rather than go geting it.

From there, your starting point is main.go. If you want to use the events sub-package, you must import ./events which is a relative path.

iangudger commented 6 years ago

I just looked over the README, and while I think the information is there, I agree that it is more subtle than it should be. @ando-masaki, have you gotten it working? Do you want to try to clarify the instructions?

ando-masaki commented 6 years ago

I see. I cloned this repository, and it works. Thank you!