mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-10 13:32:24 +00:00
b248b21349
As discussed in https://github.com/go-enry/go-enry/issues/54, this provides an API for accessing a LanguageInfo struct which is populated with all the data from the Linguist YAML source file. Functions are provided to access the LanguageInfo by name or ID. The other top-level functions like GetLanguageExtensions, GetLanguageGroup, etc. could in principle be implemented using this structure, which would simplify the code generation. But that would be a big change so I didn't do any of that. Perhaps in the next major version something like that would make sense. |
||
---|---|---|
.. | ||
alias.go.tmpl | ||
colors.go.tmpl | ||
commit.go.tmpl | ||
content.go.tmpl | ||
documentation.go.tmpl | ||
extension.go.tmpl | ||
filename.go.tmpl | ||
frequencies.go.tmpl | ||
groups.go.tmpl | ||
header.go.tmpl | ||
id.go.tmpl | ||
interpreter.go.tmpl | ||
languageInfo.go.tmpl | ||
mimeType.go.tmpl | ||
type.go.tmpl | ||
vendor.go.tmpl |