From 15ce042bd7ddf2cec9deca7c827d2ce93c4d11cd Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 13 Jun 2025 21:57:21 +0200 Subject: Rename the src package to app --- main.go | 2 +- src/countries.go | 2 +- src/http.go | 4 ++-- src/i18n.go | 2 +- src/templates.go | 2 +- 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" -- cgit v1.2.3