Skip to content

Commit

Permalink
Run gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmalkmus committed Sep 9, 2021
1 parent fa37052 commit 4c0b3bf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions rpi_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ package main
import (
"context"
"fmt"
"io"
"net/http"
"os"
"os/signal"
"syscall"
"time"
"io"

"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
Expand Down Expand Up @@ -67,10 +67,10 @@ func handler(w http.ResponseWriter, r *http.Request) {
}

func HealthCheckHandler(w http.ResponseWriter, r *http.Request) {
// A very simple health check.
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
io.WriteString(w, `{"alive": true}`)
// A very simple health check.
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
io.WriteString(w, `{"alive": true}`)
}

func main() {
Expand Down

0 comments on commit 4c0b3bf

Please sign in to comment.