summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--main.go2
-rw-r--r--src/countries.go2
-rw-r--r--src/http.go4
-rw-r--r--src/i18n.go2
-rw-r--r--src/templates.go2
5 files changed, 6 insertions, 6 deletions
diff --git a/main.go b/main.go
index dc4a6f4..827491e 100644
--- a/main.go
+++ b/main.go
@@ -38,7 +38,7 @@ func main() {
go watch()
}
dbx.Init()
- src.Run(*port)
+ app.Run(*port)
}
func watch() {
diff --git a/src/countries.go b/src/countries.go
index ee85c72..0068c8f 100644
--- a/src/countries.go
+++ b/src/countries.go
@@ -1,4 +1,4 @@
-package src
+package app
import (
"slices"
diff --git a/src/http.go b/src/http.go
index 4c2f5c6..c9896b5 100644
--- a/src/http.go
+++ b/src/http.go
@@ -1,4 +1,4 @@
-package src
+package app
import (
"cmp"
@@ -43,7 +43,7 @@ func Run(port int) {
portStr := ":" + strconv.Itoa(port)
log.Println("Listening on", portStr)
err := http.ListenAndServe(portStr, mux)
- dbx.DB.Close()
+ dbx.Close()
log.Fatal(err)
}
diff --git a/src/i18n.go b/src/i18n.go
index b1c954d..b2769ab 100644
--- a/src/i18n.go
+++ b/src/i18n.go
@@ -1,7 +1,7 @@
//go:generate go tool gotext -srclang=en -dir=rosetta extract -lang=bg,el,en,nl .
//go:generate ../exttmpl
-package src
+package app
import (
"fmt"
diff --git a/src/templates.go b/src/templates.go
index 28b7700..df14138 100644
--- a/src/templates.go
+++ b/src/templates.go
@@ -1,4 +1,4 @@
-package src
+package app
import (
"embed"