Skip to content

stscoundrel/starboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Starboard

List stars user has received in their Github repositories. A Golang library.

Also available as an API.

Install

go get github.com/stscoundrel/starboard

Usage

Starboard exposes a function for getting Github stars by username. The request goes through public search API, so no authentication is required.

package main

import (
    "fmt"

    "github.com/stscoundrel/starboard/stars"
)

func main() {
    // Get list of all of users repos that have received stars
    stars, err := stars.GetStars("stscoundrel")
    
    fmt.Println(stars[0])
    // {
    // 	Repository:     "stscoundrel/starboard",
    // 	Count:          1,
    // 	Link:           "https://github.com/stscoundrel/starboard",
    // 	StarGazersLink: "https://api.github.com/repos/stscoundrel/starboard/stargazers",
    // },
}