code: func NewMyPlugin() *MyPlugin {
  	p := new(MyPlugin)
  	p.SetName("myplugin")
  	p.Setup()
  	// This sets the REST to default instance of rest plugin.
  	p.REST = &rest.DefaultPlugin
  	return p
  }
docs: // NewMyPlugin is a constructor for our MyPlugin plugin.