tartrazine/internal/code-generator/assets
Luke Francl eb043e80a8 Add GetLanguageID function
The Linguist-defined language IDs are important to our use case because they are
used as database identifiers. This adds a new generator to extract the language
IDs into a map and uses that to implement GetLanguageID.

Because one language has the ID 0, there is no way to tell if a language name is
found or not. If desired, we could add this by returning (string, bool) from
GetLanguageID. But none of the other functions that take language names do this,
so I didn't want to introduce it here.
2021-04-13 11:49:21 -07:00
..
alias.go.tmpl Sync to linguist 7.2.0: heuristics.yml support (#189) 2019-02-14 12:47:45 +01:00
colors.go.tmpl Implement getting color code for languages 2019-07-19 23:59:46 +03:00
commit.go.tmpl write a canonical header for machine-generated files 2018-04-30 12:57:39 +03:00
content.go.tmpl sync to the latest github/linguist v7.9.0 2020-03-30 01:25:57 +03:00
documentation.go.tmpl data: replace substring package with regex package 2020-04-15 17:27:48 +02:00
extension.go.tmpl write a canonical header for machine-generated files 2018-04-30 12:57:39 +03:00
filename.go.tmpl write a canonical header for machine-generated files 2018-04-30 12:57:39 +03:00
frequencies.go.tmpl write a canonical header for machine-generated files 2018-04-30 12:57:39 +03:00
groups.go.tmpl Return group color if language has none 2020-03-31 09:30:27 +03:00
header.go.tmpl *: module rename to go-enry/go-enry/v4 2020-03-19 17:31:29 +01:00
id.go.tmpl Add GetLanguageID function 2021-04-13 11:49:21 -07:00
interpreter.go.tmpl write a canonical header for machine-generated files 2018-04-30 12:57:39 +03:00
mimeType.go.tmpl write a canonical header for machine-generated files 2018-04-30 12:57:39 +03:00
type.go.tmpl write a canonical header for machine-generated files 2018-04-30 12:57:39 +03:00
vendor.go.tmpl data: replace substring package with regex package 2020-04-15 17:27:48 +02:00