{"id":37196646,"url":"https://github.com/spider-pigs/slackmsg","last_synced_at":"2026-01-14T22:52:42.070Z","repository":{"id":55899423,"uuid":"201199910","full_name":"spider-pigs/slackmsg","owner":"spider-pigs","description":"A simple golang library to send slack messages.","archived":false,"fork":false,"pushed_at":"2022-12-16T19:00:08.000Z","size":8,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-19T05:38:57.807Z","etag":null,"topics":["golang","slack"],"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/spider-pigs.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":"2019-08-08T07:10:14.000Z","updated_at":"2022-12-16T19:00:13.000Z","dependencies_parsed_at":"2023-01-29T15:45:57.422Z","dependency_job_id":null,"html_url":"https://github.com/spider-pigs/slackmsg","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/spider-pigs/slackmsg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spider-pigs%2Fslackmsg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spider-pigs%2Fslackmsg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spider-pigs%2Fslackmsg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spider-pigs%2Fslackmsg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spider-pigs","download_url":"https://codeload.github.com/spider-pigs/slackmsg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spider-pigs%2Fslackmsg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28437057,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T22:37:52.437Z","status":"ssl_error","status_checked_at":"2026-01-14T22:37:31.496Z","response_time":107,"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":["golang","slack"],"created_at":"2026-01-14T22:52:41.286Z","updated_at":"2026-01-14T22:52:42.055Z","avatar_url":"https://github.com/spider-pigs.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# slackmsg\n[![Build Status](https://github.com/spider-pigs/slackmsg/actions/workflows/test.yml/badge.svg)](https://github.com/spider-pigs/slackmsg/actions) [![Go Report Card](https://goreportcard.com/badge/github.com/spider-pigs/slackmsg)](https://goreportcard.com/report/github.com/spider-pigs/slackmsg) [![GoDoc](https://godoc.org/github.com/spider-pigs/slackmsg?status.svg)](https://godoc.org/github.com/spider-pigs/slackmsg)\n\nA simple golang library to send a slack message.\n\n## Install\n\n```Go\nimport \"github.com/spider-pigs/slackmsg\"\n```\n\n## Usage\n\n```Go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"time\"\n\n\t\"github.com/spider-pigs/slackmsg\"\n)\n\nfunc main() {\n\t// create message\n\tmsg := slackmsg.New()\n\tmsg.Text = \"I am a test message!\"\n\tattachment := slackmsg.Attachment{\n\t\tText: \"And here’s an attachment!\",\n\t}\n\tmsg.AddAttachment(attachment)\n\n\t// dump JSON to verify?\n\tfmt.Println(msg.ToJSON())\n\n\t// send message\n\tctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)\n\tdefer cancel()\n\n\twebhook := \"https://hooks.slack.com/services/...\"\n\terr := msg.Send(ctx, webhook)\n\tif err != nil {\n\t\tfmt.Println(\"failed to send message:\", err)\n\t\treturn\n\t}\n\tfmt.Println(\"successfully sent message\")\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspider-pigs%2Fslackmsg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspider-pigs%2Fslackmsg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspider-pigs%2Fslackmsg/lists"}