1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-30 10:10:44 +02:00
go-micro/plugins/template.go
Asim Aslam d94936f6c9
v3 (#2104)
* v3

* revert plugins

* fixup some issues
2021-01-20 13:54:31 +00:00

20 lines
239 B
Go

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