back to home

slack-go / slack

Slack API in Go

4,918 stars
1,187 forks
85 issues
GoMakefile

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing slack-go/slack in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Source files are only loaded when you start an analysis to optimize performance.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind.in/repo/slack-go/slack)
Preview:Analyzed by RepoMind

Repository Overview (README excerpt)

Crawler view

Slack API in Go =============== You can chat with us on the #slack-go, #slack-go-ja Slack channel on the Gophers Slack. This library supports most if not all of the REST calls, as well as the Real-Time Messaging protocol over websocket, in a fully managed way. Project Status There is currently no major version released. Therefore, minor version releases may include backward incompatible changes. See Releases for more information about the changes. Go Versions supported We support the same versions of Go as the officially supported Go versions (see Go Release Policy). Installing *go get* $ go get -u github.com/slack-go/slack Example Getting all groups Getting User Information HTTP retries Retries are off by default. Use **OptionRetry(n)** for 429-only retries, or **OptionRetryConfig(cfg)** for full control (connection, 429, opt-in 5xx). With a custom client, pass retry options after . See package doc for handler details. Minimal Socket Mode usage: See https://github.com/slack-go/slack/blob/master/examples/socketmode/socketmode.go Minimal RTM usage: As mentioned in https://api.slack.com/rtm - for most applications, Socket Mode is a better way to communicate with Slack. See https://github.com/slack-go/slack/blob/master/examples/websocket/websocket.go Minimal EventsAPI usage: See https://github.com/slack-go/slack/blob/master/examples/eventsapi/events.go Socketmode Event Handler (Experimental) When using socket mode, dealing with an event can be pretty lengthy as it requires you to route the event to the right place. Instead, you can use much like you use an HTTP handler to register which event you would like to listen to and what callback function will process that event when it occurs. See ./examples/socketmode_handler/socketmode_handler.go Contributing You are more than welcome to contribute to this project. Fork and make a Pull Request, or create an Issue if you see any problem. Before making any Pull Request please run the following: This will check/update code formatting, linting and then run all tests License BSD 2 Clause license