From c628a5bded30df9bc84f06ba920e715a2e99d824 Mon Sep 17 00:00:00 2001 From: Martin Polden Date: Sun, 1 May 2016 17:13:40 +0200 Subject: [PATCH] Correct field order --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 6eca661..16f82fb 100644 --- a/index.html +++ b/index.html @@ -76,9 +76,9 @@ $ http ifconfig.co/city

JSON output:

 $ 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 }}"
 }