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.


eb743efpyros2097 2020-11-13T19:31:41+05:30
add http package
Files changed (1) hide show
  1. {cmd/wapp → http}/main.go +2 -2
{cmd/wapp → http}/main.go RENAMED
@@ -1,4 +1,4 @@
1
- package main
1
+ package http
2
2
 
3
3
  import (
4
4
  "bytes"
@@ -283,7 +283,7 @@ func serve(wd string) {
283
283
  log.Fatal(http.ListenAndServe(":1234", nil))
284
284
  }
285
285
 
286
- func main() {
286
+ func Watch() {
287
287
  wd, err := os.Getwd()
288
288
  if err != nil {
289
289
  fmt.Printf("could not get wd")