mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-13 23:12:24 +00:00
11 lines
188 B
Go
11 lines
188 B
Go
|
package slinguist
|
||
|
|
||
|
func GetLanguageByFilename(filename string) (lang string, safe bool) {
|
||
|
lang, safe = languagesByFilename[filename]
|
||
|
if lang == "" {
|
||
|
lang = OtherLanguage
|
||
|
}
|
||
|
|
||
|
return
|
||
|
}
|