From 7152205c80f059d3649e1830fb4dfc46d1fc158f Mon Sep 17 00:00:00 2001 From: Emile Date: Wed, 12 Feb 2025 22:05:22 +0100 Subject: template: the goapp docker package should now (in theory) build It's quite a weird way to pull out the packge name from the attribute set of defined packages, yet it kind of works. I can't test it, as docker doesn't want to run Mach-O binaries, but kicking this into hydra should result in some nice builds. --- nix/templates/goapp/frontend/src/main.go | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 nix/templates/goapp/frontend/src/main.go (limited to 'nix/templates/goapp/frontend/src') 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()) -} -- cgit 1.4.1