Correct field order

This commit is contained in:
Martin Polden 2016-05-01 17:13:40 +02:00
parent 2c5f4e08b5
commit c628a5bded

View File

@ -76,9 +76,9 @@ $ http ifconfig.co/city
<p>JSON output:</p>
<pre>
$ http ifconfig.co/json
{ {{ if .IsLookupCountryEnabled }}
"country": "{{ .Country }}",{{ end }}{{ if .IsLookupCityEnabled }}
"city": "{{ .City }}",{{ end }}{{ if .IsLookupAddrEnabled }}
{ {{ if .IsLookupCityEnabled }}
"city": "{{ .City }}",{{ end }}{{ if .IsLookupCountryEnabled }}
"country": "{{ .Country }}",{{ end }}{{ if .IsLookupAddrEnabled }}
"hostname": "{{ .Hostname }}",{{ end }}
"ip": "{{ .IP }}"
}