Categorygithub.com/johncoene/go-webhose
module
0.0.0-20191126191443-c878a7486e76
Repository: https://github.com/johncoene/go-webhose.git
Documentation: pkg.go.dev

# README

Go Report Card

go-webhose

Access webhose.io API from golang.

Install

go get github.com/news-r/go-webhose/webhose

Documentation is on godoc

Example

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)
}

# Packages

Package webhose provides an interface to the webhose.io API.