about summary refs log tree commit diff
path: root/nix/templates/goapp/frontend/src/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'nix/templates/goapp/frontend/src/main.go')
-rw-r--r--nix/templates/goapp/frontend/src/main.go29
1 files changed, 0 insertions, 29 deletions
diff --git a/nix/templates/goapp/frontend/src/main.go b/nix/templates/goapp/frontend/src/main.go
deleted file mode 100644
index adb15cd..0000000
--- a/nix/templates/goapp/frontend/src/main.go
+++ /dev/null
@@ -1,29 +0,0 @@
-package main
-
-import (
-	"fmt"
-	"log"
-	"net/http"
-	"time"
-
-	"github.com/gorilla/mux"
-)
-
-func indexHandler(w http.ResponseWriter, r *http.Request) {
-	fmt.Fprintf(w, "Hello World from the frontend")
-}
-
-func main() {
-	r := mux.NewRouter()
-	r.HandleFunc("/", indexHandler)
-
-	srv := &http.Server{
-		Handler:      r,
-		Addr:         ":8080",
-		WriteTimeout: 15 * time.Second,
-		ReadTimeout:  15 * time.Second,
-	}
-
-	log.Printf("[i] Running the server on %s", srv.Addr)
-	log.Fatal(srv.ListenAndServe())
-}