mirror of
https://github.com/skidoodle/ipinfo.git
synced 2025-02-15 08:29:17 +01:00
test updates
This commit is contained in:
parent
7e14ec4d76
commit
d4ac1c0dd8
5 changed files with 10 additions and 5 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue