Return group color if language has none

This commit is contained in:
Lauris BH
2020-03-21 15:37:39 +02:00
parent cfaa7a1711
commit 97a26011a9
13 changed files with 293 additions and 1 deletions

View File

@ -67,6 +67,11 @@ The most accurate guess would be one when both, the file name and the content ar
- `IsDotFile`
- `IsImage`
### Language colors and groups
*enry* exposes function to get language color to use for example in presenting statistics in graphs:
- `GetColor`
- `GetLanguageGroup` can be used to group similar languages together e.g. for `Less` this function will return `CSS`
## Languages
### Go