chore(all): move sub-packages to internal/provider
This commit is contained in:
14
internal/provider/privatevpn/updater/countries.go
Normal file
14
internal/provider/privatevpn/updater/countries.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package privatevpn
|
||||
|
||||
import "strings"
|
||||
|
||||
func codeToCountry(countryCode string, countryCodes map[string]string) (
|
||||
country string, warning string) {
|
||||
countryCode = strings.ToLower(countryCode)
|
||||
country, ok := countryCodes[countryCode]
|
||||
if !ok {
|
||||
warning = "unknown country code: " + countryCode
|
||||
country = countryCode
|
||||
}
|
||||
return country, warning
|
||||
}
|
||||
Reference in New Issue
Block a user