changed int32 to time.Duration type

main
simonkellet 2 years ago
parent 3e0b10a8f5
commit acff443905
  1. 12
      tasks.go

@ -1,11 +1,13 @@
package main
import "time"
// TODO: Finish off doc. here
type Task struct {
TaskName string `json:"taskname"`
TaskDesc string `json:"taskdesc"`
Interval int32 `json:"interval"`
CMD string `json:"cmd"`
Icon string `json:"icon"`
TaskName string `json:"taskname"`
TaskDesc string `json:"taskdesc"`
Interval time.Duration `json:"interval"`
CMD string `json:"cmd"`
Icon string `json:"icon"`
}

Loading…
Cancel
Save