unified GetLanguage function

This commit is contained in:
Máximo Cuadros
2016-07-18 16:20:12 +02:00
parent ec9c23e411
commit 2bbd7ec440
7 changed files with 990 additions and 1033 deletions

View File

@ -9,7 +9,7 @@ func GetLanguageByExtension(filename string) (lang string, safe bool) {
ext := strings.ToLower(filepath.Ext(filename))
lang = OtherLanguage
langs, ok := LanguagesByExtension[ext]
langs, ok := languagesByExtension[ext]
if !ok {
return
}