diff options
author | Thomas Voss <mail@thomasvoss.com> | 2025-06-13 21:57:21 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2025-06-13 21:57:21 +0200 |
commit | 15ce042bd7ddf2cec9deca7c827d2ce93c4d11cd (patch) | |
tree | 5484df85eaa808d60278569047859606d9bf83f1 /src | |
parent | c7ad83472710a7e72d7566b09f2eb223708e1343 (diff) |
Rename the src package to app
Diffstat (limited to 'src')
-rw-r--r-- | src/countries.go | 2 | ||||
-rw-r--r-- | src/http.go | 4 | ||||
-rw-r--r-- | src/i18n.go | 2 | ||||
-rw-r--r-- | src/templates.go | 2 |
4 files changed, 5 insertions, 5 deletions
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" |