woodpecker/web/slack.go

10 lines
215 B
Go
Raw Normal View History

2016-04-12 17:12:14 +00:00
package web
import "github.com/gin-gonic/gin"
// Slack is handler function that handles Slack slash commands.
func Slack(c *gin.Context) {
text := c.PostForm("text")
c.String(200, "received message %s", text)
}