{"id":20386435,"url":"https://github.com/chiefy/go-slack-utils","last_synced_at":"2026-04-19T01:34:41.298Z","repository":{"id":63087790,"uuid":"231247021","full_name":"chiefy/go-slack-utils","owner":"chiefy","description":"Some wrappers for incoming webhooks, Block Kit UI and message authentication for Slack","archived":false,"fork":false,"pushed_at":"2022-11-12T16:42:19.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-15T08:23:45.080Z","etag":null,"topics":["block-kit","blockkit","middleware","slack","slack-utils"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chiefy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-01T17:55:27.000Z","updated_at":"2022-11-12T16:26:17.000Z","dependencies_parsed_at":"2022-11-12T18:04:33.195Z","dependency_job_id":null,"html_url":"https://github.com/chiefy/go-slack-utils","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chiefy%2Fgo-slack-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chiefy%2Fgo-slack-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chiefy%2Fgo-slack-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chiefy%2Fgo-slack-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chiefy","download_url":"https://codeload.github.com/chiefy/go-slack-utils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241936296,"owners_count":20045053,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["block-kit","blockkit","middleware","slack","slack-utils"],"created_at":"2024-11-15T02:37:34.644Z","updated_at":"2026-04-19T01:34:36.272Z","avatar_url":"https://github.com/chiefy.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-slack-utils\n\n[![GoDoc](https://godoc.org/github.com/chiefy/go-slack-utils?status.svg)](https://godoc.org/github.com/chiefy/go-slack-utils)\n\n## What this is?\n\nThis is a general purpose utility library for using Slack's [Block kit UI](https://api.slack.com/reference/block-kit/blocks), with Go structs corresponding to the blocks used to create UI elements. Also included is middleware for validing Slack requests using HMAC-256 and the Slack secret signing key.\n\n## What this is not?\n\nA Slack API wrapper. There's plenty of those out there.\n\n## Installation\n\n```bash\ngo get -u github.com/chiefy/go-slack-utils\n```\n\n## Usage\n\n### Middleware\n\n```go\nfunc main() {\n     \n    r := mux.NewRouter()\n    r.HandleFunc(\"/command\", MySlashCommandHandler).Methods(http.MethodPost)\n    r.Use(middleware.ValidateTimestamp)\n\n    // It's up to you on how you configure injection of the slack signing secret\n    signingSecret := os.Getenv(\"SLACK_SIGNING_SECRET\")\n    // Generate the validation middleware by injecting the secret\n    validateReq := middleware.ValidateSlackRequest(signingSecret)\n    r.Use(validateReq)\n\n    srv := \u0026http.Server{\n        Handler:      r,\n        Addr:         \"127.0.0.1:\" + os.Getenv(\"PORT\"),\n        WriteTimeout: 15 * time.Second,\n        ReadTimeout:  15 * time.Second,\n    }\n    log.Fatal(srv.ListenAndServe())\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchiefy%2Fgo-slack-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchiefy%2Fgo-slack-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchiefy%2Fgo-slack-utils/lists"}