diff options
author | Jesse Hallam <jesse.hallam@gmail.com> | 2018-07-25 08:01:13 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2018-07-25 08:01:13 -0400 |
commit | b89ccca929e67ddd2a8f7ac2e952532bf615a51b (patch) | |
tree | f766847a9087ce651faa3603c395eb8b944810cb /plugin/example_hello_world_test.go | |
parent | 8387d92ea22562162a00fae60286dc6ec68942c1 (diff) | |
download | chat-b89ccca929e67ddd2a8f7ac2e952532bf615a51b.tar.gz chat-b89ccca929e67ddd2a8f7ac2e952532bf615a51b.tar.bz2 chat-b89ccca929e67ddd2a8f7ac2e952532bf615a51b.zip |
fix plugin example docs (#9148)
Diffstat (limited to 'plugin/example_hello_world_test.go')
-rw-r--r-- | plugin/example_hello_world_test.go | 4 |
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!") |