goctlplugin.go 274 B

12345678910111213141516171819
  1. package main
  2. import (
  3. "fmt"
  4. "git.i2edu.net/i2/go-zero/tools/goctl/plugin"
  5. )
  6. func main() {
  7. plugin, err := plugin.NewPlugin()
  8. if err != nil {
  9. panic(err)
  10. }
  11. if plugin.Api != nil {
  12. fmt.Printf("api: %+v \n", plugin.Api)
  13. }
  14. fmt.Println("Enjoy anything you want.")
  15. }