Update docs with new RegisterPluginLoader function

This commit is contained in:
Simon Ser 2020-01-21 13:40:55 +01:00
parent baae776247
commit 267999b6e5
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -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