go-webhose

module
v0.0.0-...-c878a74 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2019 License: MIT

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

Directories

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL