orgstats

package module
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2017 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

org-stats

Release Software License Travis Go Report Card Godoc SayThanks.io

Get the contributor stats summary from all repos of any given organization

asciicast

Install

brew install caarlos0/tap/org-stats

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExtractAdditions = func(st Stat) int {
	return st.Additions
}

ExtractAdditions extract the adds section of the given stat

View Source
var ExtractCommits = func(st Stat) int {
	return st.Commits
}

ExtractCommits extract the commit section of the given stat

View Source
var ExtractDeletions = func(st Stat) int {
	return st.Deletions
}

ExtractDeletions extract the rms section of the given stat

Functions

This section is empty.

Types

type Extract added in v1.1.0

type Extract func(st Stat) int

Extract is a function that converts a multiple stat into a single stat

type Stat

type Stat struct {
	Additions, Deletions, Commits int
}

Stat represents an user adds, rms and commits count

type StatPair added in v1.1.0

type StatPair struct {
	Key   string
	Value int
}

func Sort added in v1.1.0

func Sort(s Stats, extract Extract) []StatPair

type Stats

type Stats map[string]Stat

Stats contains the user->Stat mapping

func Gather added in v1.1.0

func Gather(token, org string) (Stats, error)

Gather a given organization's stats

func NewStats

func NewStats() Stats

NewStats return a new Stats map

Directories

Path Synopsis
cmd
org-stats command

Jump to

Keyboard shortcuts

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