A Go package covering Slack REST API calls plus Real-Time Messaging and Socket Mode over WebSocket with managed helpers.
Overview
This project is a Go library for building programs that talk to Slack’s platform APIs. It implements most documented REST endpoints from api.slack.com and also supports the Real-Time Messaging protocol and Socket Mode over WebSocket in a managed style.
Callers integrate it with go get and construct API clients for tasks such as listing groups or fetching user information. HTTP retry behavior is configurable for rate limits and broader error handling, and examples cover Socket Mode, RTM, Events API, and an experimental socket event handler pattern.
The library is intended for developers embedding Slack automation or bots inside Go applications, not as a standalone chat client. API coverage and behavior may change between minor releases because no major stable version is published yet.
Community support is mentioned on a Gophers Slack channel dedicated to the project.
Key features
- Slack REST API coverage
- WebSocket RTM support
- Socket Mode client
- Events API helpers
- Configurable HTTP retries
- Socket event handler pattern
- Go module distribution
Use cases
- Slack bots in Go
- Workspace automation
- Event-driven Slack integrations
- Internal tools using Slack APIs