gitee.com/quant1x/engine@v1.8.4/datasource/dfcf/finance_test.go (about) 1 package dfcf 2 3 import ( 4 "encoding/json" 5 "fmt" 6 "gitee.com/quant1x/gox/api" 7 "testing" 8 ) 9 10 func TestFinanceReports(t *testing.T) { 11 date := "2022-09-30" 12 date = "2023-03-01" 13 reports, _, _, err := FinanceReports(date) 14 if err != nil { 15 return 16 } 17 data, err := json.Marshal(reports) 18 fmt.Println(api.Bytes2String(data)) 19 }