~repos /gromer
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.
add http package
{cmd/wapp → http}/main.go
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
package
|
|
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
|
|
286
|
+
func Watch() {
|
|
287
287
|
wd, err := os.Getwd()
|
|
288
288
|
if err != nil {
|
|
289
289
|
fmt.Printf("could not get wd")
|