linguist

package
v0.96.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Color

func Color(language string) string

Color returns the color Linguist has assigned to language.

func LoadColors

func LoadColors() error

LoadColors loads the name->color map from the Linguist gem.

func Stats

func Stats(ctx context.Context, repoPath string, commitID string) (map[string]int, error)

Stats returns the repository's language stats as reported by 'git-linguist'.

Types

type Language

type Language struct {
	Color string `json:"color"`
}

Language is used to parse Linguist's language.json file.

Jump to

Keyboard shortcuts

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