go-enry/data
Luke Francl b248b21349 Expose LanguageInfo with all Linguist data
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.
2021-10-11 13:32:29 -07:00
..
rule Sync to linguist 7.2.0: heuristics.yml support (#189) 2019-02-14 12:47:45 +01:00
alias.go Update to Linguist v7.16.1 2021-09-25 23:57:50 +03:00
colors.go Update to Linguist v7.16.1 2021-09-25 23:57:50 +03:00
commit.go Update to Linguist v7.16.1 2021-09-25 23:57:50 +03:00
content.go Update to Linguist v7.16.1 2021-09-25 23:57:50 +03:00
doc.go Sync to linguist 7.2.0: heuristics.yml support (#189) 2019-02-14 12:47:45 +01:00
documentation.go Update to Linguist v7.16.1 2021-09-25 23:57:50 +03:00
extension.go Update to Linguist v7.16.1 2021-09-25 23:57:50 +03:00
filename.go Update to Linguist v7.16.1 2021-09-25 23:57:50 +03:00
frequencies.go Update to Linguist v7.16.1 2021-09-25 23:57:50 +03:00
generated_test.go data: fix getting the first line for empty content 2020-05-28 11:28:49 +02:00
generated.go data: bailout in some cases if there arent enough lines 2020-05-28 13:39:59 +02:00
groups.go Update to Linguist v7.16.1 2021-09-25 23:57:50 +03:00
heuristics_test.go *: module rename to go-enry/go-enry/v4 2020-03-19 17:31:29 +01:00
heuristics.go *: module rename to go-enry/go-enry/v4 2020-03-19 17:31:29 +01:00
id.go Update to Linguist v7.16.1 2021-09-25 23:57:50 +03:00
interpreter.go Update to Linguist v7.16.1 2021-09-25 23:57:50 +03:00
languageInfo.go Expose LanguageInfo with all Linguist data 2021-10-11 13:32:29 -07:00
mimeType.go Update to Linguist v7.16.1 2021-09-25 23:57:50 +03:00
test.go data: replace substring package with regex package 2020-04-15 17:27:48 +02:00
type.go Expose LanguageInfo with all Linguist data 2021-10-11 13:32:29 -07:00
vendor.go Update to Linguist v7.16.1 2021-09-25 23:57:50 +03:00