trending

package
v0.0.0-...-10d9caf Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const GITHUB_URL string = "https://github.com"

Variables

View Source
var Langs = GetLang()

Functions

This section is empty.

Types

type Lang

type Lang struct {
	UrlParam string `json:"urlParam"`
	Name     string `json:"name"`
}

func GetLang

func GetLang() []Lang

type TrendDeveloper

type TrendDeveloper struct {
	Username string    `json:"username"`
	Name     string    `json:"name"`
	Type     string    `json:"type"`
	Url      string    `json:"url"`
	Avatar   string    `json:"avatar"`
	Repo     TrendRepo `json:"repo"`
}

func FetchDevelopers

func FetchDevelopers(language string, since string) []TrendDeveloper

type TrendRepo

type TrendRepo struct {
	Name        string `json:"name"`
	Url         string `json:"url"`
	Description string `json:"description"`
}

type TrendRepository

type TrendRepository struct {
	Author             string      `json:"author"`
	Name               string      `json:"name"`
	Avatar             string      `json:"avatar"`
	Url                string      `json:"url"`
	Description        string      `json:"description"`
	Language           string      `json:"language"`
	LanguageColor      string      `json:"languageColor"`
	Stars              int         `json:"stars"`
	Forks              int         `json:"forks"`
	CurrentPeriodStars int         `json:"currentPeriodStars"`
	TrendUser          []TrendUser `json:"builtBy"`
}

func FetchRepositories

func FetchRepositories(language string, since string) []TrendRepository

type TrendUser

type TrendUser struct {
	Href     string `json:"href"`
	Avatar   string `json:"avatar"`
	Username string `json:"username"`
}

Jump to

Keyboard shortcuts

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