Documentation ¶
Overview ¶
Package samplemeta implements sample type Meta which holds template metadata
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Data = TodoPageData{ PageTitle: "My TODO list", Todos: []Todo{ {Title: "Task 1", Done: false}, {Title: "Task 2", Done: true}, {Title: "Task 3", Done: true}, }, }
Data holds a sample of some static external data
View Source
var ErrRedirect = errors.New("Abort with redirect")
ErrRedirect is an error returned when page needs to be redirected
Functions ¶
This section is empty.
Types ¶
type Meta ¶
Meta holds template metadata
func (Meta) ErrorMessage ¶
ErrorMessage returns internal or template error message
type TodoPageData ¶
TodoPageData holds todo page attrs
Click to show internal directories.
Click to hide internal directories.