Skip to content
This repository has been archived by the owner on Apr 24, 2021. It is now read-only.

Go server run fail (cannot use *notification) #15

Open
tv8eye opened this issue Apr 12, 2016 · 2 comments
Open

Go server run fail (cannot use *notification) #15

tv8eye opened this issue Apr 12, 2016 · 2 comments

Comments

@tv8eye
Copy link

tv8eye commented Apr 12, 2016

  1. I setup golang on Mac (using official manual)
  2. Install go-gcm:
    $ go get github.com/google/go-gcm
    $ go install github.com/google/go-gcm

  1. Open friendlyPing/server/Go folder and run:

go run server.go -testData testdata/clients.json -apiKey XXXXXXXXX -senderId XXXXXXXXX

  1. Then I get:

# command-line-arguments
./server.go:174: cannot use *notification (type gcm.Notification) as type *gcm.Notification in field value

I checked that /Users/username/gocode/src/github.com/google/go-gcm exist in my workspace folder

Can you give me some directions what is need to be checked in my setup? I suggested that go do not see go-gcm package, but everything looking fine for me

@guillosaracco
Copy link

HI @tv8eye, I got the same error.
Where you able to solve it?
Thanks in advance

@tv8eye
Copy link
Author

tv8eye commented Jul 22, 2016

Hey @guillosaracco
No, I decided to use Java tool to send messages :) That how i solved it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants