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 package main
import "time"
// TODO: Finish off doc. here // TODO: Finish off doc. here
type Task struct { type Task struct {
TaskName string `json:"taskname"` TaskName string `json:"taskname"`
TaskDesc string `json:"taskdesc"` TaskDesc string `json:"taskdesc"`
Interval int32 `json:"interval"` Interval time.Duration `json:"interval"`
CMD string `json:"cmd"` CMD string `json:"cmd"`
Icon string `json:"icon"` Icon string `json:"icon"`
} }

Loading…
Cancel
Save