Skip to content

Commit 31c8b1f

Browse files
committed
UPDATE: link to svg favicon
1 parent b4e347a commit 31c8b1f

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

appengine.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"html"
66
"net/http"
7-
"strings"
87
"strconv"
8+
"strings"
99
"time"
1010
)
1111

@@ -18,6 +18,7 @@ func appengineRootHandler(w http.ResponseWriter, r *http.Request) {
1818
<title>AppEngine Geolocation - Resolve.rs</title>
1919
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
2020
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/kognise/water.css@latest/dist/light.min.css" />
21+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
2122
</head>
2223
<body>
2324
<h1>
@@ -86,13 +87,13 @@ func appengineApiHandler(w http.ResponseWriter, r *http.Request) {
8687
comma := strings.Index(latlng, ",")
8788
if comma != -1 {
8889
latitude, latErr := strconv.ParseFloat(latlng[0:comma], 32)
89-
if (latErr != nil) {
90+
if latErr != nil {
9091
logger.Printf("ERROR: unable to convert '%s' to float: %s", latlng[0:comma], latErr)
9192
} else {
9293
result.Latitude = float32(latitude)
9394
}
9495
longitude, lngErr := strconv.ParseFloat(latlng[comma+1:len(latlng)], 32)
95-
if (lngErr != nil) {
96+
if lngErr != nil {
9697
logger.Printf("ERROR: unable to convert '%s' to float: %s", latlng[0:comma], lngErr)
9798
} else {
9899
result.Longitude = float32(longitude)

aws.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ func awsRootHandler(w http.ResponseWriter, r *http.Request) {
2626
<title>Amazon AWS CloudFront Geolocation - Resolve.rs</title>
2727
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
2828
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/kognise/water.css@latest/dist/light.min.css" />
29+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
2930
</head>
3031
<body>
3132
<h1>

cloudflare.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ func cloudflareRootHandler(w http.ResponseWriter, r *http.Request) {
2626
<title>CloudFlare Geolocation - Resolve.rs</title>
2727
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
2828
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/kognise/water.css@latest/dist/light.min.css" />
29+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
2930
</head>
3031
<body>
3132
<h1>

fastly.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ func fastlyRootHandler(w http.ResponseWriter, r *http.Request) {
1616
<title>Fastly Geolocation - Resolve.rs</title>
1717
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
1818
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/kognise/water.css@latest/dist/light.min.css" />
19+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
1920
</head>
2021
<body>
2122
<h1>

0 commit comments

Comments
 (0)