mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-24 09:40:24 +08:00
cecd4b1b75
* add plugin support * add plugin support * add plugin support * add plugin support * add plugin support * add plugin support * add plugin support * add plugin support * add plugin support * add plugin support * add plugin support * remove no need * add plugin support * rename * rename * add plugin support * refactor * update plugin * refactor * refactor * refactor * update plugin * newline Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
21 lines
315 B
Go
21 lines
315 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.Printf("dir: %s \n", plugin.Dir)
|
|
fmt.Println("Enjoy anything you want.")
|
|
}
|