forked from urdt/ussd
setup check for unused code
This commit is contained in:
parent
5c85ecffd1
commit
eff2cbde8b
15
internal/utils/isocode.go
Normal file
15
internal/utils/isocode.go
Normal 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]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user