stargazer

package module
v0.0.0-...-21e5c89 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: MIT Imports: 4 Imported by: 0

README

stargazer

Stargazing using Github API.

package main

import (
	"github.com/hoanhan101/stargazer"
)

func main() {
	repos := []string{
		"hoanhan101/ultimate-go",
		"hoanhan101/algo",
		"hoanhan101/request",
		"hoanhan101/dotfiles",
		"hoanhan101/lang",
		"vapor-ware/kubetest",
		"vapor-ware/synse-server",
		"Bennington-Distributed-Systems-2017/DarkDarkGo",
		"bennington-hardware-hacking-2019/pos_system",
	}

	stargazer.Get(repos)
}
name                                            stars   forks   watch
hoanhan101/ultimate-go                          6926    451     207
hoanhan101/algo                                 77      14      6
hoanhan101/request                              0       0       1
hoanhan101/dotfiles                             2       0       0
hoanhan101/lang                                 0       0       2
vapor-ware/kubetest                             81      25      14
vapor-ware/synse-server                         21      7       16
Bennington-Distributed-Systems-2017/DarkDarkGo  279     36      18
bennington-hardware-hacking-2019/pos_system     27      10      5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(repos []string)

Types

type Repo

type Repo struct {
	Name   string `json:"full_name"`
	Stars  int    `json:"stargazers_count"`
	Forks  int    `json:"forks"`
	Watch  int    `json:"subscribers_count"`
	Issues int    `json:"open_issues_count"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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