summaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorJesse Hallam <jesse.hallam@gmail.com>2018-07-25 08:01:13 -0400
committerJoram Wilander <jwawilander@gmail.com>2018-07-25 08:01:13 -0400
commitb89ccca929e67ddd2a8f7ac2e952532bf615a51b (patch)
treef766847a9087ce651faa3603c395eb8b944810cb /plugin
parent8387d92ea22562162a00fae60286dc6ec68942c1 (diff)
downloadchat-b89ccca929e67ddd2a8f7ac2e952532bf615a51b.tar.gz
chat-b89ccca929e67ddd2a8f7ac2e952532bf615a51b.tar.bz2
chat-b89ccca929e67ddd2a8f7ac2e952532bf615a51b.zip
fix plugin example docs (#9148)
Diffstat (limited to 'plugin')
-rw-r--r--plugin/example_hello_world_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugin/example_hello_world_test.go b/plugin/example_hello_world_test.go
index 955c6df3c..0da171eb7 100644
--- a/plugin/example_hello_world_test.go
+++ b/plugin/example_hello_world_test.go
@@ -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!")