~repos /gromer

#golang#htmx#ssr

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

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


a0aae748 Peter John

tag: v0.8.0

v0.8.0

4 years ago
update cmd
Files changed (3) hide show
  1. cmd/wapp/main.go +1 -2
  2. go.mod +1 -0
  3. go.sum +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
go.sum CHANGED
@@ -579,6 +579,7 @@ golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBc
579
579
  golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e h1:WUoyKPm6nCo1BnNUvPGnFG3T5DUVem42yDJZZ4CNxMA=
580
580
  golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
581
581
  golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
582
+ golang.org/x/sys v0.0.0-20210831042530-f4d43177bf5e h1:XMgFehsDnnLGtjvjOfqWSUzt0alpTR1RSEuznObga2c=
582
583
  golang.org/x/sys v0.0.0-20210831042530-f4d43177bf5e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
583
584
  golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
584
585
  golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=