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>
|
||||
<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 }}"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user