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

10 lines
165 B
Go

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