Update docs with new RegisterPluginLoader function
This commit is contained in:
parent
baae776247
commit
267999b6e5
1 changed files with 2 additions and 2 deletions
|
@ -67,11 +67,11 @@ type goPluginRoute struct {
|
|||
|
||||
// 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"}
|
||||
// // Define routes, template functions, etc
|
||||
// koushin.RegisterPlugin(p.Plugin())
|
||||
// koushin.RegisterPluginLoader(p.Loader())
|
||||
type GoPlugin struct {
|
||||
Name string
|
||||
|
||||
|
|
Loading…
Reference in a new issue