{"id":15323559,"url":"https://github.com/easonlin404/go-slack","last_synced_at":"2026-04-25T22:34:12.331Z","repository":{"id":87096726,"uuid":"93233121","full_name":"easonlin404/go-slack","owner":"easonlin404","description":"A simple, flexible Golang wrapper around the Slack webhook API. ","archived":false,"fork":false,"pushed_at":"2020-06-10T16:36:47.000Z","size":8,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-01T09:59:50.697Z","etag":null,"topics":["go","golang","slack","slack-webhook"],"latest_commit_sha":null,"homepage":"","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/easonlin404.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-03T07:58:31.000Z","updated_at":"2020-06-10T16:36:10.000Z","dependencies_parsed_at":"2024-06-20T10:47:59.245Z","dependency_job_id":"bd3ba117-4d04-4f69-8267-edc9fc266ace","html_url":"https://github.com/easonlin404/go-slack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/easonlin404/go-slack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easonlin404%2Fgo-slack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easonlin404%2Fgo-slack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easonlin404%2Fgo-slack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easonlin404%2Fgo-slack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/easonlin404","download_url":"https://codeload.github.com/easonlin404/go-slack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easonlin404%2Fgo-slack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32279657,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T18:29:39.964Z","status":"ssl_error","status_checked_at":"2026-04-25T18:29:32.149Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["go","golang","slack","slack-webhook"],"created_at":"2024-10-01T09:20:20.381Z","updated_at":"2026-04-25T22:34:12.316Z","avatar_url":"https://github.com/easonlin404.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-slack\n\nA simple, flexible Golang wrapper around the [Slack webhook API](https://api.slack.com). Makes it easy to send notifications to Slack from your application(inspired by nodejs [slack-notify](https://github.com/andrewchilds/slack-notify)).\n\n[![Travis branch](https://img.shields.io/travis/easonlin404/go-slack/master.svg)](https://travis-ci.org/easonlin404/go-slack)\n[![Codecov branch](https://img.shields.io/codecov/c/github/easonlin404/go-slack/master.svg)](https://codecov.io/gh/easonlin404/go-slack)\n[![Go Report Card](https://goreportcard.com/badge/github.com/easonlin404/gin-slack)](https://goreportcard.com/report/github.com/easonlin404/gin-slack)\n [![GoDoc](https://godoc.org/github.com/easonlin404/gin-slack?status.svg)](https://godoc.org/github.com/easonlin404/gin-slack)\n \n## Features\n* Send plain text and message with attachments\n* Send attachments with markdown syntax \n* Debug\n* Timeout\n* Logger\n* [Context](https://golang.org/pkg/context/)(todo)\n\n## Installation\n```sh\n$ go get -u github.com/easonlin404/go-slack\n```\n\n## Useage\nBasic send text message\n```go\n// You need get your slack WebhookURL from https://api.slack.com/incoming-webhooks\n\twebhookURL := \"https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX\"\n  \n\tmessage := Message{\n\t\tText: \"message\",\n\t}\n\n\tr, e := slack.New().\n\t\tWebhookURL(webhookURL).\n\t\tSendMessage(message)\n```\nSend message with attachments\n```go\n// You need get your slack WebhookURL from https://api.slack.com/incoming-webhooks\n\twebhookURL := \"https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX\"\n  \n\tmessage := Message{\n\t\tAttachments: []Attachment{\n\t\t\t{Title: \"title\",\n\t\t\t\tFields: []Field{\n\t\t\t\t\t{Title: \"T1\", Value: 0, Short: true},\n\t\t\t\t\t{Title: \"T2\", Value: 0, Short: true},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t}\n\n\tr, e := slack.New().\n\t\tWebhookURL(webhookURL).\n\t\tSendMessage(message)\n\n```\nAttachments enable markdown\n\n```go\n// You need get your slack WebhookURL from https://api.slack.com/incoming-webhooks\n\twebhookURL := \"https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX\"\n  \n\tmessage := Message{\n\t\tAttachments: []Attachment{\n\t\t\t{Title: \"title\", MrkdwnIn: []string{\"text\"},\n\t\t\t\tFields: []Field{\n\t\t\t\t\t{Title: \"T1\", Value: 0, Short: true},\n\t\t\t\t\t{Title: \"T2\", Value: 0, Short: true},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t}\n\n\tr, e := slack.New().\n\t\tWebhookURL(webhookURL).\n\t\tSendMessage(message)\n\n```\n\nDebug\n```go\n// You need get your slack WebhookURL from https://api.slack.com/incoming-webhooks\n\twebhookURL := \"https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX\"\n  \n\tmessage := Message{\n\t\tText: \"message\",\n\t}\n\n\tr, e := slack.New().Debug(true).\n\t\tWebhookURL(webhookURL).\n\t\tSendMessage(message)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasonlin404%2Fgo-slack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feasonlin404%2Fgo-slack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasonlin404%2Fgo-slack/lists"}