2019-09-09 19:09:28 -07:00
|
|
|
package plugin
|
|
|
|
|
|
|
|
var (
|
|
|
|
tmpl = `
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2020-01-30 14:39:00 +03:00
|
|
|
"github.com/micro/go-micro/v2/plugin"
|
2019-09-09 19:09:28 -07:00
|
|
|
|
|
|
|
"{{.Path}}"
|
|
|
|
)
|
|
|
|
|
|
|
|
var Plugin = plugin.Config{
|
|
|
|
Name: "{{.Name}}",
|
|
|
|
Type: "{{.Type}}",
|
|
|
|
Path: "{{.Path}}",
|
|
|
|
NewFunc: {{.Name}}.{{.NewFunc}},
|
|
|
|
}
|
|
|
|
`
|
|
|
|
)
|