diff --git a/example/update_regular/main.go b/example/update_regular/main.go new file mode 100644 index 00000000..828d5153 --- /dev/null +++ b/example/update_regular/main.go @@ -0,0 +1,14 @@ +package main + +import ( + "github.com/godcong/fate" + "github.com/godcong/fate/config" + "github.com/godcong/fate/regular" +) + +func main() { + c := config.LoadConfig() + db := fate.InitDatabaseWithConfig(*c) + r := regular.New(db) + r.Run() +}