Skip to content

Commit 78b8581

Browse files
author
James Halsall
authored
Format Go code with gofmt (#22)
1 parent f134874 commit 78b8581

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

application/skeleton/main.go

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
package main
22

33
import (
4-
"fmt"
5-
"github.com/prometheus/client_golang/prometheus/promhttp"
6-
"log"
7-
"net/http"
4+
"fmt"
5+
"github.com/prometheus/client_golang/prometheus/promhttp"
6+
"log"
7+
"net/http"
88
)
99

1010
func main() {
11-
fmt.Println("Service running")
11+
fmt.Println("Service running")
1212

13-
http.Handle("/metrics", promhttp.Handler())
14-
http.HandleFunc("/", func(w http.ResponseWriter, req *http.Request) {
15-
w.WriteHeader(200)
16-
w.Write([]byte(`{"status": "OK"}`))
17-
})
13+
http.Handle("/metrics", promhttp.Handler())
14+
http.HandleFunc("/", func(w http.ResponseWriter, req *http.Request) {
15+
w.WriteHeader(200)
16+
w.Write([]byte(`{"status": "OK"}`))
17+
})
1818

19-
err := http.ListenAndServe(":80", nil)
20-
if err != nil {
21-
log.Fatalf("failed to start HTTP server: %s", err)
22-
}
19+
err := http.ListenAndServe(":80", nil)
20+
if err != nil {
21+
log.Fatalf("failed to start HTTP server: %s", err)
22+
}
2323
}

0 commit comments

Comments
 (0)