linguist

package
v1.44.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2019 License: MIT Imports: 11 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