pcmt/handlers/page.go
surtur f0bda26e8c
All checks were successful
continuous-integration/drone/push Build is passing
handlers: add helper newPage func w/ pre-filling
2023-08-15 18:33:48 +02:00

32 lines
552 B
Go

// Copyright 2023 wanderer <a_mirre at utb dot cz>
// SPDX-License-Identifier: AGPL-3.0-only
package handlers
import moduser "git.dotya.ml/mirre-mt/pcmt/modules/user"
type page struct {
User moduser.User
AppName string
AppVer string
Title string
Name string
CSRF string
DevelMode bool
Current string
Error string
Status string
StatusText string
Data map[string]any
}
func newPage() *page {
p := &page{
AppName: appName,
AppVer: appver,
DevelMode: appIsDevel,
}
return p
}