From 31c8b1f55b5e2e3ea651eaffe2215c7260c0f574 Mon Sep 17 00:00:00 2001 From: Andrew Marcuse Date: Tue, 20 Feb 2024 21:43:19 -0500 Subject: [PATCH] UPDATE: link to svg favicon --- appengine.go | 7 ++++--- aws.go | 1 + cloudflare.go | 1 + fastly.go | 1 + 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/appengine.go b/appengine.go index 47ce736..e2d96e9 100644 --- a/appengine.go +++ b/appengine.go @@ -4,8 +4,8 @@ import ( "fmt" "html" "net/http" - "strings" "strconv" + "strings" "time" ) @@ -18,6 +18,7 @@ func appengineRootHandler(w http.ResponseWriter, r *http.Request) { AppEngine Geolocation - Resolve.rs +

@@ -86,13 +87,13 @@ func appengineApiHandler(w http.ResponseWriter, r *http.Request) { comma := strings.Index(latlng, ",") if comma != -1 { latitude, latErr := strconv.ParseFloat(latlng[0:comma], 32) - if (latErr != nil) { + if latErr != nil { logger.Printf("ERROR: unable to convert '%s' to float: %s", latlng[0:comma], latErr) } else { result.Latitude = float32(latitude) } longitude, lngErr := strconv.ParseFloat(latlng[comma+1:len(latlng)], 32) - if (lngErr != nil) { + if lngErr != nil { logger.Printf("ERROR: unable to convert '%s' to float: %s", latlng[0:comma], lngErr) } else { result.Longitude = float32(longitude) diff --git a/aws.go b/aws.go index 6259aa6..244241c 100644 --- a/aws.go +++ b/aws.go @@ -26,6 +26,7 @@ func awsRootHandler(w http.ResponseWriter, r *http.Request) { Amazon AWS CloudFront Geolocation - Resolve.rs +

diff --git a/cloudflare.go b/cloudflare.go index 280c744..fca4848 100644 --- a/cloudflare.go +++ b/cloudflare.go @@ -26,6 +26,7 @@ func cloudflareRootHandler(w http.ResponseWriter, r *http.Request) { CloudFlare Geolocation - Resolve.rs +

diff --git a/fastly.go b/fastly.go index 34cdd5a..5bbe24d 100644 --- a/fastly.go +++ b/fastly.go @@ -16,6 +16,7 @@ func fastlyRootHandler(w http.ResponseWriter, r *http.Request) { Fastly Geolocation - Resolve.rs +