{"id":15870930,"url":"https://github.com/int128/slack","last_synced_at":"2025-03-16T04:30:25.404Z","repository":{"id":57498848,"uuid":"154756429","full_name":"int128/slack","owner":"int128","description":"Slack/Mattermost Incoming Webhooks API Client for Go","archived":false,"fork":false,"pushed_at":"2020-07-04T12:14:39.000Z","size":21,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-27T04:47:51.960Z","etag":null,"topics":["appengine","golang","incoming-webhooks","mattermost","slack"],"latest_commit_sha":null,"homepage":"https://godoc.org/github.com/int128/slack","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/int128.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":"2018-10-26T00:52:32.000Z","updated_at":"2021-02-19T13:19:16.000Z","dependencies_parsed_at":"2022-09-06T17:11:39.419Z","dependency_job_id":null,"html_url":"https://github.com/int128/slack","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/int128%2Fslack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/int128%2Fslack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/int128%2Fslack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/int128%2Fslack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/int128","download_url":"https://codeload.github.com/int128/slack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243801679,"owners_count":20350108,"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":["appengine","golang","incoming-webhooks","mattermost","slack"],"created_at":"2024-10-06T00:40:58.099Z","updated_at":"2025-03-16T04:30:25.091Z","avatar_url":"https://github.com/int128.png","language":"Go","readme":"# slack [![GoDoc](https://godoc.org/github.com/int128/slack?status.svg)](https://godoc.org/github.com/int128/slack) [![CircleCI](https://circleci.com/gh/int128/slack.svg?style=shield)](https://circleci.com/gh/int128/slack) [![codecov](https://codecov.io/gh/int128/slack/branch/master/graph/badge.svg)](https://codecov.io/gh/int128/slack)\n\nThis is a Go package for sending messages via [Slack Incoming Webhooks API](https://api.slack.com/docs/messages) and [Mattermost Incoming Webhooks API](https://developers.mattermost.com/integrate/incoming-webhooks/).\nIt provides dialects for Slack and Mattermost.\n\nSee [GoDoc](https://godoc.org/github.com/int128/slack).\n\n\n## Examples\n\n```go\npackage main\n\nimport (\n\t\"log\"\n\n\t\"github.com/int128/slack\"\n)\n\nconst webhook = \"https://hooks.slack.com/services/...\"\n\nfunc main() {\n\tif err := slack.Send(webhook, \u0026slack.Message{\n\t\tUsername:  \"mybot\",\n\t\tIconEmoji: \":star:\",\n\t\tText:      \"Hello World!\",\n\t}); err != nil {\n\t\tlog.Fatalf(\"Could not send the message to Slack: %s\", err)\n\t}\n}\n```\n\nSee also [example/main.go](example/main.go).\n\n\n## Contributions\n\nThis is an open source software licensed under Apache-2.0.\nFeel free to open issues and pull requests.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fint128%2Fslack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fint128%2Fslack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fint128%2Fslack/lists"}