Differentiate between IsEU being false and unknown

This commit is contained in:
Martin Polden
2018-08-31 22:41:16 +02:00
parent 7f538ca24b
commit 8433521b3b
3 changed files with 6 additions and 8 deletions

View File

@ -34,7 +34,7 @@ type Response struct {
IP net.IP `json:"ip"`
IPDecimal *big.Int `json:"ip_decimal"`
Country string `json:"country,omitempty"`
CountryEU bool `json:"country_eu,omitempty"`
CountryEU *bool `json:"country_eu,omitempty"`
CountryISO string `json:"country_iso,omitempty"`
City string `json:"city,omitempty"`
Hostname string `json:"hostname,omitempty"`