GOLANG SLACKBOT TUTORIAL

Build Your Slack App Home in Golang Using Socket Mode

Building a home for your app — revisited in Go

Alexandre Couëdelo
Better Programming
Published in
7 min readApr 8, 2021

--

Gopher (Golang) at a beach house with a umbrella and raincoat
Photo by Olia Nayda on Unsplash, Gopher by Egon Elbre.

This tutorial is about implementing an App Home in Golang with the slack-go library and Slack’s Socket Mode. This guide was inspired by an article from Slack’s documentation.

An App Home is that space that appears under the App section in the conversation list with your app’s name. It is a fully customizable space to provide documentation and interaction with your app.

Location of App Home in Slack UI
Photo by the author.

���Why Socket Mode?” you may ask.

With Socket Mode, you don’t need a server with a publicly available IP address. In other words, your laptop, your Raspberry Pi, or a private server can host your bot. Socket Mode is perfect for small applications that you do not intend to distribute via the App Directory.

Configure Your Application

To start this tutorial, you will need a Slack application with the proper permissions and Socket Mode activated. You can refer to this documentation to create your app and add the permissions. I also wrote a…

--

--