types

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultFilename is the output file name
	DefaultFilename = "README.md"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IRepo

type IRepo interface {
	ROwner() string
	RName() string
	Expand(*github.Client) Repository
}

IRepo capture the basic operations on a repository

type Repositories

type Repositories []Repository

Repositories are parsed repos ready to feed the templates

func (Repositories) Categorize

func (r Repositories) Categorize() map[string][]Repository

Categorize sorts repositories by it's declared category

type Repository

type Repository struct {
	URL         string `csv:"url"`
	Category    string `csv:"category"`
	Owner       string
	Name        string
	Description string
	Stargazers  int
	UpdatedAt   github.Timestamp // TODO make this human: Last update was X days/weeks/months/years ago
}

Repository maps a repo information

func (Repository) Expand

func (r Repository) Expand(c *github.Client) Repository

Expand feeds the repository with information pulled from Github

func (Repository) RName

func (r Repository) RName() string

RName returns the Github repository name

func (Repository) ROwner

func (r Repository) ROwner() string

ROwner returns the Github repository owner's name

Jump to

Keyboard shortcuts

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