Versions in this module Expand all Collapse all v1 v1.0.1 Apr 19, 2022 v1.0.0 Aug 11, 2021 Changes in this version + func Analyse(contents []byte, hints []string) (language string) + func Exists(path string) (bool, error) + func IsBinary(contents []byte) bool + func IsDocumentation(path string) bool + func IsVendored(path string) bool + func LanguageByContents(contents []byte, hints []string) string + func LanguageByFilename(filename string) string + func LanguageColor(language string) string + func LanguageHints(filename string) (hints []string) + func ProcessFile(filename string) (string, error) + func ShouldIgnoreContents(contents []byte) bool + func ShouldIgnoreFilename(filename string) bool + type Language struct + Color string + Language string + Percent float64 + func Alias(lang *Language) *Language + func ProcessDir(dirname string) ([]*Language, error)