Skip to content

ytkhs/hackernews-api-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

hackernews-api-go

wrapper for hacker news API ( https://github.com/HackerNews/API ) written in Golang.

Sample Usage

package main

import (
	h "github.com/ytkhs/hackernews-api-go"

	"fmt"
)

func main() {

	a, _ := h.GetItem(8863)
	fmt.Printf("%+v", a)

	b, _ := h.GetStories("ask")
	fmt.Printf("%+v", b)

	c, _ := h.GetMaxItemID()
	fmt.Printf("%+v", c)

	d, _ := h.GetUser("jl")
	fmt.Printf("%+v", d)

	e, _ := h.GetUpdates()
	fmt.Printf("%+v", e)

}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages