mirror of
https://github.com/mpolden/echoip.git
synced 2024-11-10 07:27:22 +01:00
Correct field order
This commit is contained in:
parent
2c5f4e08b5
commit
c628a5bded
@ -76,9 +76,9 @@ $ http ifconfig.co/city
|
|||||||
<p>JSON output:</p>
|
<p>JSON output:</p>
|
||||||
<pre>
|
<pre>
|
||||||
$ http ifconfig.co/json
|
$ http ifconfig.co/json
|
||||||
{ {{ if .IsLookupCountryEnabled }}
|
{ {{ if .IsLookupCityEnabled }}
|
||||||
"country": "{{ .Country }}",{{ end }}{{ if .IsLookupCityEnabled }}
|
"city": "{{ .City }}",{{ end }}{{ if .IsLookupCountryEnabled }}
|
||||||
"city": "{{ .City }}",{{ end }}{{ if .IsLookupAddrEnabled }}
|
"country": "{{ .Country }}",{{ end }}{{ if .IsLookupAddrEnabled }}
|
||||||
"hostname": "{{ .Hostname }}",{{ end }}
|
"hostname": "{{ .Hostname }}",{{ end }}
|
||||||
"ip": "{{ .IP }}"
|
"ip": "{{ .IP }}"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user