{"id":19791458,"url":"https://github.com/invisiblethreat/slackhook","last_synced_at":"2026-05-13T15:41:54.847Z","repository":{"id":57505824,"uuid":"120103289","full_name":"invisiblethreat/slackhook","owner":"invisiblethreat","description":"Slack Incoming Webhook for Golang","archived":false,"fork":false,"pushed_at":"2018-02-03T18:03:42.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-11T04:19:32.408Z","etag":null,"topics":["go","golang","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/invisiblethreat.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-02-03T15:28:49.000Z","updated_at":"2018-02-03T18:17:55.000Z","dependencies_parsed_at":"2022-09-26T17:51:47.072Z","dependency_job_id":null,"html_url":"https://github.com/invisiblethreat/slackhook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invisiblethreat%2Fslackhook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invisiblethreat%2Fslackhook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invisiblethreat%2Fslackhook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invisiblethreat%2Fslackhook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/invisiblethreat","download_url":"https://codeload.github.com/invisiblethreat/slackhook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241131858,"owners_count":19915020,"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":["go","golang","slack","webhook"],"created_at":"2024-11-12T07:03:10.934Z","updated_at":"2026-05-13T15:41:54.814Z","avatar_url":"https://github.com/invisiblethreat.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GoDoc](https://godoc.org/github.com/invisiblethreat/slackhook?status.png)](https://godoc.org/github.com/invisiblethreat/slackhook)\n[![Build Status](https://travis-ci.org/invisiblethreat/slackhook.svg?branch=master)](https://travis-ci.org/invisiblethreat/slackhook)\n\n# slackhook\n\nDerived from https://github.com/lytics/slackhook.\n\n[Incoming WebHooks](https://api.slack.com/incoming-webhooks) API client.\n\n## Usage\n\n```golang\n hook := slackhook.NewHook(os.Getenv(\"SLACK_HOOK\"))\n\n// most fields are optional and will default to the configured values on the\n// integration page\nmsg := slackhook.Message{\n    Channel:  \"#hook-testing\",\n    Text:     \"testing text\",\n    UserName: \"slackhook tester\",\n    IconURL:  \"https://slack.global.ssl.fastly.net/66f9/img/avatars/ava_0002-48.png\",\n}\n\n// most fields are optional\natt := slackhook.Attachment{\n    Color:      \"good\",\n    Text:       \"text\",\n    Fallback:   \"fallback\",\n    AuthorName: \"author\",\n    AuthorLink: \"https://github.com/invisiblethreat/slackhook\",\n    AuthorIcon: \"https://avatars1.githubusercontent.com/u/2525006?s=40\u0026v=4\",\n    Title:      \"attachment title\",\n    TitleLink:  \"https://github.com/invisiblethreat/slackhook\",\n    ImageURL:   \"http://i.imgur.com/50NA7vr.gif\",\n    Footer:     \"footer text\",\n    FooterIcon: \"http://simpleicon.com/wp-content/uploads/foot.png\",\n}\n\natt.TSSet(time.Now())\n\nfield := slackhook.Field{\n\tTitle: \"field title\",\n\tValue: \"field value\",\n\tShort: false,\n}\n\n\tatt.AddField(field)\n\n\tmsg.Attach(\u0026att)\n\thook.Send(\u0026msg)\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvisiblethreat%2Fslackhook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finvisiblethreat%2Fslackhook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvisiblethreat%2Fslackhook/lists"}