Initial commit with user management

This commit is contained in:
Magnus Åhall 2024-11-27 21:41:48 +01:00
commit a1a928e7cb
98 changed files with 13042 additions and 0 deletions

31
html_template/page.go Normal file
View file

@ -0,0 +1,31 @@
package HTMLTemplate
type Page interface {
GetVersion() string
GetLayout() string
GetPage() string
GetData() any
}
type SimplePage struct {
Version string
Layout string
Page string
Data any
}
func (s SimplePage) GetVersion() string {
return s.Version
}
func (s SimplePage) GetLayout() string {
return s.Layout
}
func (s SimplePage) GetPage() string {
return s.Page
}
func (s SimplePage) GetData() any {
return s.Data
}