Tasks/types/types.go

20 lines
326 B
Go
Raw Normal View History

2015-11-13 14:34:42 +05:30
package types
2015-11-21 18:50:51 +05:30
//Task is the struct used to identify tasks
2015-11-13 14:34:42 +05:30
type Task struct {
2016-01-23 19:17:34 +05:30
Id int
Title string
Content string
Created string
Priority string
2015-11-13 14:34:42 +05:30
}
2015-11-21 18:50:51 +05:30
//Context is the struct passed to templates
type Context struct {
Tasks []Task
Navigation string
2015-11-21 19:42:44 +05:30
Search string
2015-11-22 09:21:29 +05:30
Message string
2016-01-18 06:32:15 +05:30
CSRFToken string
2015-11-21 18:50:51 +05:30
}