Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Language ¶
type Language struct { Language string `json:"language"` Percent float64 `json:"percent"` // Color represents the color associated with the language in HTML hex notation. Color string `json:"color"` }
Language is the programming langage and the percentage on how sure linguist feels about its decision.
func Alias ¶ added in v0.7.0
Alias returns the language name for a given known alias.
Occasionally linguist comes up with odd language names, or determines a Java app as a "Maven POM" app, which in essence is the same thing for Draft's intent.
func ProcessDir ¶
ProcessDir walks through a directory and returns a list of sorted languages within that directory.
Click to show internal directories.
Click to hide internal directories.