娯楽で作ったgolack
Simple Incoming Webhooks in Go
package main
import "github.com/operando/golack"
func main() {
slack := golack.Slack{
Text: "@operando: test",
Username: "sushi",
IconEmoji: ":sushi:",
Channel: "#general",
LinkNames: true,
}
p := golack.Payload{
slack,
}
w := golack.Webhook{
"webhook_url", // your Incoming WebHooks URL for Slack
}
golack.Post(p, w)
}
To install, use go get
:
go get github.com/operando/golack