mirror of
https://github.com/skidoodle/ipinfo.git
synced 2025-02-15 08:29:17 +01:00
test updates
This commit is contained in:
@@ -21,6 +21,7 @@ type dataStruct struct {
|
||||
Region *string `json:"region"`
|
||||
Country *string `json:"country"`
|
||||
Continent *string `json:"continent"`
|
||||
Timezone *string `json:"timezone"`
|
||||
Loc *string `json:"loc"`
|
||||
}
|
||||
|
||||
@@ -124,6 +125,8 @@ func getField(data *dataStruct, field string) *string {
|
||||
return data.Country
|
||||
case "continent":
|
||||
return data.Continent
|
||||
case "timezone":
|
||||
return data.Timezone
|
||||
case "loc":
|
||||
return data.Loc
|
||||
default:
|
||||
|
Reference in New Issue
Block a user