Skip to content

pkuca/hn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hn

Go Reference

Package hn provides a client wrapping requests to the hackernews firebase API.

Installation

go get github.com/pkuca/hn

Basic Usage

client := hn.NewClient(nil)
topStories, _ := client.TopStories()

Custom Client

httpClient := &http.Client{
    Timeout: time.Second * 20,
}

hnClient := hn.NewClient(httpClient)
topStories, _ := hnClient.TopStories()

About

HTTP wrapper for hackernews firebase API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages