setup check for unused code

This commit is contained in:
Carlosokumu 2024-09-24 09:00:31 +03:00
parent 5c85ecffd1
commit eff2cbde8b
Signed by: carlos
GPG Key ID: 7BD6BC8160A5C953

15
internal/utils/isocode.go Normal file
View File

@ -0,0 +1,15 @@
package utils
var isoCodes = map[string]bool{
"eng": true, // English
"swa": true, // Swahili
}
func IsValidISO639(code string) bool {
return isoCodes[code]
}