country-geo-locations/pkg/geoloc/main.go

11 lines
165 B
Go
Raw Normal View History

package geoloc
import "strings"
func GetCountry(input string) *Country {
if c, exists := countries[strings.ToUpper(input)]; exists {
return &c
}
return nil
}