1
0
Fork 0
short/healthz.go

17 lines
267 B
Go

package main
import (
"fmt"
"net/http"
"runtime"
)
var ver string
func healthz(w http.ResponseWriter) {
w.Header().Set("Content-Type", "text/plain")
fmt.Fprintf(w, "ok\n")
fmt.Fprintf(w, "ver: %v\n", ver)
fmt.Fprintf(w, "go ver: %v\n", runtime.Version())
}