mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-24 01:30:25 +08:00
84ab11ac09
* support plugin custom flags * add short name * remove log * remove log
20 lines
277 B
Go
20 lines
277 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/tal-tech/go-zero/tools/goctl/plugin"
|
|
)
|
|
|
|
func main() {
|
|
plugin, err := plugin.NewPlugin()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
|
|
if plugin.Api != nil {
|
|
fmt.Printf("api: %+v \n", plugin.Api)
|
|
}
|
|
fmt.Println("Enjoy anything you want.")
|
|
}
|