Update docs with new RegisterPluginLoader function
This commit is contained in:
parent
baae776247
commit
267999b6e5
|
@ -67,11 +67,11 @@ type goPluginRoute struct {
|
||||||
|
|
||||||
// GoPlugin is a helper to create Go plugins.
|
// GoPlugin is a helper to create Go plugins.
|
||||||
//
|
//
|
||||||
// Use this struct to define your plugin, then call RegisterPlugin:
|
// Use this struct to define your plugin, then call RegisterPluginLoader:
|
||||||
//
|
//
|
||||||
// p := GoPlugin{Name: "my-plugin"}
|
// p := GoPlugin{Name: "my-plugin"}
|
||||||
// // Define routes, template functions, etc
|
// // Define routes, template functions, etc
|
||||||
// koushin.RegisterPlugin(p.Plugin())
|
// koushin.RegisterPluginLoader(p.Loader())
|
||||||
type GoPlugin struct {
|
type GoPlugin struct {
|
||||||
Name string
|
Name string
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue