mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-24 18:00:24 +08:00
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.")
|
||
|
}
|