iptax

package
v0.0.0-...-1661e1d Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PeriodLayout = "2006-01-02"
	MonthEnd     = 25
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Contribution

type Contribution struct {
	Title  string
	Number uint
	Repo
}

func (Contribution) Ref

func (c Contribution) Ref() string

func (Contribution) URL

func (c Contribution) URL() url.URL

type Contributions

type Contributions []Contribution

func CollectContributions

func CollectContributions(period Period, cfg config.Config) (Contributions, error)

func (Contributions) ToRepos

func (c Contributions) ToRepos() []Repo

type Period

type Period struct {
	From time.Time
	To   time.Time
}

func NewPeriod

func NewPeriod(now string, periodEnd int) (Period, error)

func (Period) String

func (p Period) String() string

type Repo

type Repo struct {
	Owner string
	Name  string
	Site
}

func (Repo) Ref

func (r Repo) Ref() string

func (Repo) URL

func (r Repo) URL() url.URL

type Site

type Site struct {
	Address string
	config.Type
}

Jump to

Keyboard shortcuts

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