diff --git a/auth/get_rid_of_it.go b/auth/get_rid_of_it.go deleted file mode 100644 index a7b0c91..0000000 --- a/auth/get_rid_of_it.go +++ /dev/null @@ -1,22 +0,0 @@ -package auth - -type L10nEntry struct { - _en string - _ru string -} - -func En(v string) L10nEntry { - return L10nEntry{_en: v} -} - -func (e L10nEntry) Ru(v string) L10nEntry { - e._ru = v - return e -} - -func (e L10nEntry) Get(lang string) string { - if lang == "ru" && e._ru != "" { - return e._ru - } - return e._en -} diff --git a/newtmpl/base.html b/web/newtmpl/base.html similarity index 100% rename from newtmpl/base.html rename to web/newtmpl/base.html diff --git a/newtmpl/newtmpl.go b/web/newtmpl/newtmpl.go similarity index 100% rename from newtmpl/newtmpl.go rename to web/newtmpl/newtmpl.go diff --git a/web/pages.go b/web/pages.go index 71eda2f..d650166 100644 --- a/web/pages.go +++ b/web/pages.go @@ -2,7 +2,7 @@ package web import ( "embed" - "github.com/bouncepaw/mycorrhiza/newtmpl" + "github.com/bouncepaw/mycorrhiza/web/newtmpl" ) //go:embed views/*.html