{"id":19321887,"url":"https://github.com/pascalallen/pubsub","last_synced_at":"2026-06-22T10:32:05.620Z","repository":{"id":148760921,"uuid":"618040861","full_name":"pascalallen/pubsub","owner":"pascalallen","description":"pubsub is a Go module that offers a concurrent pub/sub service leveraging goroutines and channels.","archived":false,"fork":false,"pushed_at":"2023-03-29T15:57:24.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-27T11:45:55.196Z","etag":null,"topics":[],"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/pascalallen.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":"2023-03-23T16:20:14.000Z","updated_at":"2023-03-23T16:52:50.000Z","dependencies_parsed_at":"2023-05-28T21:30:24.283Z","dependency_job_id":null,"html_url":"https://github.com/pascalallen/pubsub","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/pascalallen/pubsub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pascalallen%2Fpubsub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pascalallen%2Fpubsub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pascalallen%2Fpubsub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pascalallen%2Fpubsub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pascalallen","download_url":"https://codeload.github.com/pascalallen/pubsub/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pascalallen%2Fpubsub/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34645681,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-22T02:00:06.391Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-10T01:39:27.696Z","updated_at":"2026-06-22T10:32:05.602Z","avatar_url":"https://github.com/pascalallen.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pubsub\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/pascalallen/pubsub.svg)](https://pkg.go.dev/github.com/pascalallen/pubsub)\n![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/pascalallen/pubsub)\n[![Go Report Card](https://goreportcard.com/badge/github.com/pascalallen/pubsub)](https://goreportcard.com/report/github.com/pascalallen/pubsub)\n![GitHub Workflow Status (with branch)](https://img.shields.io/github/actions/workflow/status/pascalallen/pubsub/go.yml?branch=main)\n![GitHub](https://img.shields.io/github/license/pascalallen/pubsub)\n![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/pascalallen/pubsub)\n\npubsub is a Go module that offers a concurrent pub/sub service leveraging goroutines and channels.\n\n## Installation\n\nUse the Go CLI tool [go](https://go.dev/dl/) to install hmac.\n\n```bash\ngo get github.com/pascalallen/pubsub\n```\n\n## Usage\n\n```go\n...\n\nimport (\n    \"fmt\"\n    \"github.com/pascalallen/pubsub\"\n)\n\n...\n\nc := make(chan pubsub.Message)\nt := pubsub.CreateTopic(\"my-topic\", c)\nm := pubsub.CreateMessage([]byte(\"hello, jupiter!\"))\nt.AddMessage(*m)\n\ns := pubsub.CreateSubscriber(\"my-subscription\", *t, c)\n\ngo t.Publish()\n\nfor m := range s.Channel {\n\tfmt.Printf(\"Message received for subscriber %s: %s\\n\", s.Name, m)\n}\n\n...\n```\n\n## Testing\n\nRun tests and create coverage profile:\n\n```bash\ngo test -covermode=count -coverprofile=coverage.out\n```\n\nView test coverage profile:\n\n```bash\ngo tool cover -html=coverage.out\n```\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first\nto discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpascalallen%2Fpubsub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpascalallen%2Fpubsub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpascalallen%2Fpubsub/lists"}