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

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

@tv8eye

Description

@tv8eye
  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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions