trending

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindLangs

func FindLangs() []string

FindLangs from GitHub trending

Types

type Repository

type Repository struct {
	Name        string
	URL         string
	Description string
	Lang        string
	Star        int
	StarBySpan  int
	Fork        int
}

Repository is expression type for github repository on trending.

func FindTrending

func FindTrending(lang string, span Span) ([]Repository, error)

FindTrending repositories by lang and span

func (*Repository) Print

func (repo *Repository) Print()

Print data for Repository

func (*Repository) ToString

func (repo *Repository) ToString() string

ToString for Repository

type Span

type Span int

Span is span for trending search

const (
	// Today span
	Today Span = iota
	// Week span
	Week
	// Month span
	Month
)

func GetSpanByString

func GetSpanByString(span string) Span

GetSpanByString Span const by string

Jump to

Keyboard shortcuts

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