Access webhose.io API from golang.
go get github.com/news-r/go-webhose/webhose
Documentation is on godoc
package main
import (
"fmt"
"go-webhose/webhose"
)
func main() {
client := &webhose.NewsClient{Token: "xxXXXX-XXxxXX-xXXxxxXX-xXXXx", Query: "go programming language"}
news := webhose.GetArticles(client, 2) // client and number of pages of result
fmt.Println(news.News)
}