mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-24 09:40:24 +08:00
22 lines
255 B
Go
22 lines
255 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"os"
|
||
|
|
||
|
"zero/core/lang"
|
||
|
"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)
|
||
|
}
|