go-zero/tools/goctl/api/main.go
2020-08-08 16:40:10 +08:00

22 lines
301 B
Go

package main
import (
"fmt"
"os"
"github.com/tal-tech/go-zero/core/lang"
"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])
lang.Must(err)
api, err := p.Parse()
lang.Must(err)
fmt.Println(api)
}