fail fast when rolling window size is zero
parent
6f49639f80
commit
c824e9e118
@ -1,21 +0,0 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/tal-tech/go-zero/core/logx"
|
||||
"github.com/tal-tech/go-zero/tools/goctl/api/parser"
|
||||
)
|
||||
|
||||
func main() {
|
||||
if len(os.Args) <= 1 {
|
||||
return
|
||||
}
|
||||
|
||||
p, err := parser.NewParser(os.Args[1])
|
||||
logx.Must(err)
|
||||
api, err := p.Parse()
|
||||
logx.Must(err)
|
||||
fmt.Println(api)
|
||||
}
|
Loading…
Reference in New Issue