Registry /
messaging / ashwanthkumar-slack-go-webhook
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
slack
✓ github.com/ashwanthkumar/slack-go-webhook
Send a simple text message to a Slack channel via webhook.
package main
import (
"fmt"
"github.com/ashwanthkumar/slack-go-webhook"
)
func main() {
webhookURL := "https://hooks.slack.com/services/..."
payload := slack.Payload{Text: "Hello from Go!"}
err := slack.Send(webhookURL, "", payload)
if err != nil {
fmt.Println(err)
}
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.0.0-20200209025033-430dd4e66960latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.