Этот коммит содержится в:
Jesse Hallam
2018-07-25 08:01:13 -04:00
коммит произвёл Joram Wilander
родитель 8387d92ea2
Коммит b89ccca929

Просмотреть файл

@@ -7,7 +7,9 @@ import (
"github.com/mattermost/mattermost-server/plugin" "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) { func (p *HelloWorldPlugin) ServeHTTP(c *plugin.Context, w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Hello, world!") fmt.Fprintf(w, "Hello, world!")