func TestParseDir(t *testing.T) { start := time.Now() inputDir := "./excel" outDir := "./config" err := parse.ParseDir(inputDir, outDir, "json", "server") n := time.Now().Sub(start).Nanoseconds() t.Log(n, err) }
func main() { flag.Parse() defer wait_exit() startTime := time.Now() err := parse.ParseDir(*inputDir, *outDir, *et, *sc) if err != nil { fmt.Println(err) return } fmt.Println("耗时:", time.Since(startTime)) }