From cc89f53e6f17dd6ecf72dad46834a8cc9cb424ba Mon Sep 17 00:00:00 2001 From: godcong Date: Tue, 31 Mar 2020 23:41:49 +0800 Subject: [PATCH] update fate --- example/update_regular/main.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 example/update_regular/main.go 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() +}