func GetColor(language string) string {
	if color, ok := data.LanguagesColor[language]; ok {
		return color
	}
	if color, ok := data.LanguagesColor[GetLanguageGroup(language)]; ok {
		return color
	}
	return "#cccccc"
}
GetColor returns a HTML color code of a given language.
package enry
import (
	"bytes"
	"path/filepath"
	"regexp"
	"sort"
	"strings"
	"github.com/go-enry/go-enry/v2/data"
	"github.com/go-enry/go-enry/v2/regex"
)
const binSniffLen = 8000
var configurationLanguages = map[string]struct{}{
	"XML":  {},
	"JSON": {},
	"TOML": {},
	"YAML": {},
	"INI":  {},
	"SQL":  {},
}
func IsConfiguration(path string) bool {
	language, _ := GetLanguageByExtension(path)
	_, is := configurationLanguages[language]
	return is
}
func IsImage(path string) bool {
	extension := filepath.Ext(path)
	if extension == ".png" || extension == ".jpg" || extension == ".jpeg" || extension == ".gif" {
		return true
	}
	return false
}
func GetMIMEType(path string, language string) string {
	if mime, ok := data.LanguagesMime[language]; ok {
		return mime
	}
	if IsImage(path) {
		return "image/" + filepath.Ext(path)[1:]
	}
	return "text/plain"
}
func IsDocumentation(path string) bool {
	return matchRegexSlice(data.DocumentationMatchers, path)
}
func IsDotFile(path string) bool {
	base := filepath.Base(filepath.Clean(path))
	return strings.HasPrefix(base, ".") && base != "."
}
var isVendorRegExp *regexp.Regexp
func IsVendor(path string) bool {
	return isVendorRegExp.MatchString(path)
}
func IsTest(path string) bool {
	return matchRegexSlice(data.TestMatchers, path)
}
func IsBinary(data []byte) bool {
	if len(data) > binSniffLen {
		data = data[:binSniffLen]
	}
	if bytes.IndexByte(data, byte(0)) == -1 {
		return false
	}
	return true
}