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