diff --git a/crontab.go b/crontab.go new file mode 100644 index 0000000..92310ac --- /dev/null +++ b/crontab.go @@ -0,0 +1,15 @@ +package crontabex + +import "time" + +// ICrontab 时间到 +type ICrontab interface { + TimeIsUp() bool + NextTime() time.Time + Set(...interface{}) // 默认不忽略 + Get(...interface{}) +} + +// Crontab +type Crontab struct { +} diff --git a/crontab_test.go b/crontab_test.go new file mode 100644 index 0000000..81d21f5 --- /dev/null +++ b/crontab_test.go @@ -0,0 +1,7 @@ +package crontabex + +import "testing" + +func TestCrontabex(t *testing.T) { + +} diff --git a/plan_time.go b/plan_time.go new file mode 100644 index 0000000..eff9021 --- /dev/null +++ b/plan_time.go @@ -0,0 +1,10 @@ +package crontabex + +// PlanTime +type PlanTime struct { +} + +// TrieTime +type TrieTime struct { + everyYear int +}