kennygrant / gohackernews

Golang News - curated links about the Go programming language
https://golangnews.com
MIT License
283 stars 42 forks source link

undefined: sendgrid #15

Closed k0fi closed 7 years ago

k0fi commented 8 years ago

Hi, I get this error at go get:

go get -u github.com/kennygrant/gohackernews
# github.com/kennygrant/gohackernews/src/lib/mail
../github.com/kennygrant/gohackernews/src/lib/mail/mail.go:35: undefined: sendgrid.NewSendGridClientWithApiKey
../github.com/kennygrant/gohackernews/src/lib/mail/mail.go:37: undefined: sendgrid.NewMail

And at build also:

me@pc:~/go/src/github.com/kennygrant/gohackernews$ go build
# github.com/kennygrant/gohackernews/src/lib/mail
src/lib/mail/mail.go:35: undefined: sendgrid.NewSendGridClientWithApiKey
src/lib/mail/mail.go:37: undefined: sendgrid.NewMail

How to fix these? Thanks

kennygrant commented 7 years ago

Sorry for the late reply. I'll look into it to see, sounds like an older version of the sendgrid library was linked and it has been updated (I know they changed their API recently).

kennygrant commented 7 years ago

Yep, looks like they broke their API:

https://github.com/sendgrid/sendgrid-go/issues/81

I'll fix on this end.