https://github.com/leprosus/golang-slack-notifier
Simple slack notifier as golang package
https://github.com/leprosus/golang-slack-notifier
golang notifier slack
Last synced: 6 months ago
JSON representation
Simple slack notifier as golang package
- Host: GitHub
- URL: https://github.com/leprosus/golang-slack-notifier
- Owner: leprosus
- License: gpl-3.0
- Created: 2017-05-04T14:19:04.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-04-03T14:12:16.000Z (about 6 years ago)
- Last Synced: 2024-06-20T08:18:58.746Z (about 2 years ago)
- Topics: golang, notifier, slack
- Language: Go
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: License.md
Awesome Lists containing this project
README
# Simple slack notifier as golang package
## Create new connection
```go
slackConn := slack.New("https://hooks.slack.com/services/TTTTTTTT/BBBBBBBB/bi43fdi347bdi3b4bf")
// Send notification
slackConn.Notify("username", "Hello, man")
```
## List all methods
* slack.New(webHook) - initializes configuration
* slack.Name(name) - to set notifier name
* slack.Face(face) - to set notifier face from Emoji
* slack.Notify(username, message) - to set notification