test updates

This commit is contained in:
skidoodle 2024-09-07 18:59:47 +02:00
parent 7e14ec4d76
commit d4ac1c0dd8
5 changed files with 10 additions and 5 deletions

View file

@ -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: