The module name is onesignal-go-client in the go.mod but the repo name is onesignal-go-api. This causes an error
github.com/OneSignal/onesignal-go-api@v1.0.0: parsing go.mod:
module declares its path as: github.com/OneSignal/onesignal-go-client
but was required as: github.com/OneSignal/onesignal-go-api
The module name is
onesignal-go-client
in the go.mod but the repo name isonesignal-go-api
. This causes an errorI was able to get it installed by doing
go get github.com/OneSignal/onesignal-go-client
. I'm guessing the repo was renamed. If this was intentional then update the instructions here - https://onesignal.com/blog/our-go-client-sdk-is-now-available/