10 lines
165 B
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
|
|
}
|