micro/util/plugin/template.go
2020-08-23 21:18:59 +01:00

21 lines
239 B
Go

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}},
}
`
)