move plugin to util

This commit is contained in:
Asim Aslam
2020-08-23 21:18:59 +01:00
parent c62d1d5eb8
commit 7bdd619e1b
3 changed files with 0 additions and 0 deletions

20
util/plugin/template.go Normal file
View File

@@ -0,0 +1,20 @@
package plugin
var (
tmpl = `
package main
import (
"github.com/micro/go-micro/v3/plugin"
"{{.Path}}"
)
var Plugin = plugin.Config{
Name: "{{.Name}}",
Type: "{{.Type}}",
Path: "{{.Path}}",
NewFunc: {{.Name}}.{{.NewFunc}},
}
`
)