summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/main.go b/main.go
index eeb9dc3..d9c4580 100644
--- a/main.go
+++ b/main.go
@@ -2,7 +2,6 @@ package main
import (
_ "embed"
- "fmt"
"log"
"os"
"os/signal"
@@ -23,11 +22,6 @@ const (
var versionTxt string
var router *mux.Router = mux.NewRouter()
-func init() {
- router.HandleFunc("/", hello)
- router.HandleFunc("/version", version)
-}
-
func main() {
run()
}
@@ -49,14 +43,6 @@ func run() {
await(syscall.SIGTERM, syscall.SIGINT)
}
-func hello(w http.ResponseWriter, r *http.Request) {
- fmt.Fprintln(w, "Hello world!")
-}
-
-func version(w http.ResponseWriter, r *http.Request) {
- fmt.Fprint(w, versionTxt)
-}
-
func await(signals ...syscall.Signal) {
listener := make(chan os.Signal, 1)
for _, s := range signals {