mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
fix plugin example docs (#9148)
This commit is contained in:
committed by
Joram Wilander
parent
8387d92ea2
commit
b89ccca929
@@ -7,7 +7,9 @@ import (
|
||||
"github.com/mattermost/mattermost-server/plugin"
|
||||
)
|
||||
|
||||
type HelloWorldPlugin struct{}
|
||||
type HelloWorldPlugin struct {
|
||||
plugin.MattermostPlugin
|
||||
}
|
||||
|
||||
func (p *HelloWorldPlugin) ServeHTTP(c *plugin.Context, w http.ResponseWriter, r *http.Request) {
|
||||
fmt.Fprintf(w, "Hello, world!")
|
||||
|
||||
Reference in New Issue
Block a user