micro/plugin/template.go

21 lines
239 B
Go
Raw Normal View History

2019-09-10 05:09:28 +03:00
package plugin
var (
tmpl = `
package main
import (
"github.com/micro/go-micro/v2/plugin"
2019-09-10 05:09:28 +03:00
"{{.Path}}"
)
var Plugin = plugin.Config{
Name: "{{.Name}}",
Type: "{{.Type}}",
Path: "{{.Path}}",
NewFunc: {{.Name}}.{{.NewFunc}},
}
`
)