starboard

module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2022 License: MIT

README

Starboard

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

Install

go get github.com/stscoundrel/starboard

Usage

Troubleman 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",
    // },
}

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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