package main
import (
"fmt"
"basic.com/valib/iploc.git"
)
func main() {
geo, err := iploc.GetLocation()
if err == nil {
fmt.Println(geo)
} else {
fmt.Println("GetLocation:", err)
}
geo, err = iploc.GetLocationForIp("114.114.114.114")
if err == nil {
fmt.Println(geo)
} else {
fmt.Println("GetLocationForIp:", err)
}
}