diff options
Diffstat (limited to 'model.go')
-rw-r--r-- | model.go | 17 |
1 files changed, 13 insertions, 4 deletions
@@ -17,10 +17,10 @@ type Entry struct { } type Task struct { - Id int - Group *string - Ident *string - Text string + Id int + Group *string + Ident *string + Text string } type Date string @@ -47,6 +47,15 @@ func NewEntry(date Date) *Entry { } +func NewTask() *Task { + return &Task{ + Id: -1, + Group: nil, + Ident: nil, + Text: "", + } +} + func TimeFromStd(time time.Time) Time { return Time(time.Format("15:04")) } |