forked from OrgGo/Tasks
20 lines
326 B
Go
20 lines
326 B
Go
package types
|
|
|
|
//Task is the struct used to identify tasks
|
|
type Task struct {
|
|
Id int
|
|
Title string
|
|
Content string
|
|
Created string
|
|
Priority string
|
|
}
|
|
|
|
//Context is the struct passed to templates
|
|
type Context struct {
|
|
Tasks []Task
|
|
Navigation string
|
|
Search string
|
|
Message string
|
|
CSRFToken string
|
|
}
|