mirror of
https://github.com/mattermost/mattermost.git
synced 2026-05-28 04:35:04 -04:00
fix plugin example docs (#9148)
This commit is contained in:
parent
8387d92ea2
commit
b89ccca929
1 changed files with 3 additions and 1 deletions
|
|
@ -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!")
|
||||
|
|
|
|||
Loading…
Reference in a new issue