mirror of
https://github.com/injoyai/tdx.git
synced 2025-11-26 21:25:35 +08:00
拓展示例
This commit is contained in:
19
example/WorkdayAndCodes/main.go
Normal file
19
example/WorkdayAndCodes/main.go
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/injoyai/logs"
|
||||||
|
"github.com/injoyai/tdx"
|
||||||
|
"github.com/injoyai/tdx/example/common"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
common.Test(func(c *tdx.Client) {
|
||||||
|
|
||||||
|
_, err := tdx.NewWorkday(c, "./workday.db")
|
||||||
|
logs.PanicErr(err)
|
||||||
|
|
||||||
|
_, err = tdx.NewCodes(c, "./codes.db")
|
||||||
|
logs.PanicErr(err)
|
||||||
|
|
||||||
|
})
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user