Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 405 Bytes

README.md

File metadata and controls

15 lines (11 loc) · 405 Bytes

Slackbot

A Slack notifier library for Go applications.

##Usage

Create a new instance of SlackBot specifying the URL of Slack and the access token, then call the method "PostMessage" passing the channel and message.

Example:

    func SendSlackNotification() {
        b := slackbot.New("https://my_slack_hook_url", "my_slack_token")
        b.PostMessage("#random", "All your base ")
    }