Create Template working

This commit is contained in:
Ian Gulliver
2022-03-17 04:08:08 +00:00
parent 02ec8ad88c
commit 78b4a03072
6 changed files with 79 additions and 6 deletions

View File

@@ -19,6 +19,12 @@ type Check struct {
Completed *time.Time `json:"completed"`
}
func NewTemplate() *Template {
return &Template{
Items: []*Item{},
}
}
func (t *Template) GetType() string {
return "template"
}
@@ -26,3 +32,7 @@ func (t *Template) GetType() string {
func (t *Template) GetId() string {
return t.Id
}
func (t *Template) IsValid() bool {
return true
}