contributions

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Path      string
	Start     string
	Threshold int
)

Functions

func Analyze

func Analyze()

analyze starts the analysis process.

Types

type Contributor

type Contributor struct {
	// contains filtered or unexported fields
}

Contributor contains all details about a contributor.

func (Contributor) Activity

func (c Contributor) Activity() string

Activity retrieves the activity in days.

func (*Contributor) AddDeletions

func (c *Contributor) AddDeletions(deletions int)

AddDeletions increases the number of deletions.

func (*Contributor) AddInsertions

func (c *Contributor) AddInsertions(insertions int)

AddInsertions increases the number of insertions.

func (Contributor) Deletions

func (c Contributor) Deletions() int

Deletions retrieves the number of deletions.

func (Contributor) Insertions

func (c Contributor) Insertions() int

Insertions retrieves the number of insertions.

func (*Contributor) SetEnd

func (c *Contributor) SetEnd(end string)

SetEnd defines the date of the last commit.

func (*Contributor) SetStart

func (c *Contributor) SetStart(start string)

SetStart defines the date of the first commit.

Jump to

Keyboard shortcuts

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