gromer

#golang#htmx#ssr

git clone https://git.pyrossh.dev/gromer

gromer is a framework and cli to build multipage web apps in golang using htmx and alpinejs.


43f951e — Peter John 2021-11-23T23:55:18+05:30
update cmd

Generated files not shown: go.sum

Files changed (2) hide show
  1. cmd/wapp/main.go +1 -2
  2. go.mod +1 -0
cmd/wapp/main.go CHANGED
@@ -214,7 +214,6 @@ import (
214
214
  "embed"
215
215
  "net/http"
216
216
  "os"
217
- "time"
218
217
 
219
218
  "github.com/apex/gateway/v2"
220
219
  "github.com/gorilla/mux"
@@ -240,7 +239,7 @@ func main() {
240
239
  {{/each}}
241
240
  if !isLambda {
242
241
  println("http server listening on http://localhost:3000")
243
- srv := server.New(http.DefaultServeMux, nil)
242
+ srv := server.New(r, nil)
244
243
  if err := srv.ListenAndServe(":3000"); err != nil {
245
244
  log.Fatal().Stack().Err(err).Msg("failed to listen")
246
245
  }
go.mod CHANGED
@@ -29,6 +29,7 @@ require (
29
29
  github.com/jtolds/gls v4.2.1+incompatible // indirect
30
30
  github.com/konsorten/go-windows-terminal-sequences v1.0.1 // indirect
31
31
  github.com/markbates/inflect v1.0.4 // indirect
32
+ github.com/mattn/go-isatty v0.0.14 // indirect
32
33
  github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
33
34
  github.com/microcosm-cc/bluemonday v1.0.15 // indirect
34
35
  github.com/openzipkin/zipkin-go v0.1.1 // indirect