fix(修正命名): country调整为city

This commit is contained in:
2021-01-21 18:06:18 +08:00
parent 3caa55c1c7
commit a95d612bbe
2 changed files with 13 additions and 13 deletions

View File

@ -12,9 +12,9 @@ func init() {
func TestQueryIP(t *testing.T) {
queryIp := "1.1.1.1"
country, area, err := QueryIP(queryIp)
city, area, err := QueryIP(queryIp)
if err != nil {
t.Fatal(err)
}
t.Log(country, area)
t.Logf("城市:%s区域%s", city, area)
}