Initial commit with user management
This commit is contained in:
commit
a1a928e7cb
98 changed files with 13042 additions and 0 deletions
31
html_template/page.go
Normal file
31
html_template/page.go
Normal 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue