mirror of
https://github.com/go-micro/go-micro.git
synced 2024-12-12 08:23:58 +02:00
f23638c036
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
21 lines
239 B
Go
21 lines
239 B
Go
package plugin
|
|
|
|
var (
|
|
tmpl = `
|
|
package main
|
|
|
|
import (
|
|
"github.com/micro/go-micro/v2/plugin"
|
|
|
|
"{{.Path}}"
|
|
)
|
|
|
|
var Plugin = plugin.Config{
|
|
Name: "{{.Name}}",
|
|
Type: "{{.Type}}",
|
|
Path: "{{.Path}}",
|
|
NewFunc: {{.Name}}.{{.NewFunc}},
|
|
}
|
|
`
|
|
)
|