{"id":21199177,"url":"https://github.com/r167/go-sets","last_synced_at":"2026-03-10T10:05:47.502Z","repository":{"id":207917459,"uuid":"720391873","full_name":"R167/go-sets","owner":"R167","description":"A minimal set library for golang","archived":false,"fork":false,"pushed_at":"2023-11-20T19:01:33.000Z","size":11,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-10T10:46:48.998Z","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/R167.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,"zenodo":null}},"created_at":"2023-11-18T10:46:48.000Z","updated_at":"2024-08-23T17:04:52.000Z","dependencies_parsed_at":"2023-11-20T20:02:48.409Z","dependency_job_id":null,"html_url":"https://github.com/R167/go-sets","commit_stats":null,"previous_names":["r167/go-sets"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/R167/go-sets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R167%2Fgo-sets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R167%2Fgo-sets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R167%2Fgo-sets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R167%2Fgo-sets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/R167","download_url":"https://codeload.github.com/R167/go-sets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R167%2Fgo-sets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30329698,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"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":[],"created_at":"2024-11-20T19:59:34.920Z","updated_at":"2026-03-10T10:05:47.464Z","avatar_url":"https://github.com/R167.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Sets!\nA minimal set library for golang. This tinylib eschews any dependencies and implements common, optimized set operations on `type Set[E comparable] map[E]struct{}`\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/R167/go-sets.svg)](https://pkg.go.dev/github.com/R167/go-sets) [![Go Report Card](https://goreportcard.com/badge/github.com/R167/go-sets)](https://goreportcard.com/report/github.com/R167/go-sets) [![CI](https://github.com/R167/go-sets/actions/workflows/ci.yaml/badge.svg)](https://github.com/R167/go-sets/actions/workflows/ci.yaml)\n\nSupported set operations:\n- Union: A⋃B\n- Intersection: A⋂B\n- Difference: A-B\n\nSupported checks:\n- Subset: A⊆B\n- Superset: A⊇B\n- Equality: A=B\n\n## Usage\n```go\npackage main\n\nimport (\n  \"fmt\"\n\n  \"github.com/R167/go-sets\"\n)\n\nfunc main() {\n  a := sets.New(1, 2, 3)\n  b := sets.New(3, 4, 5)\n\n  fmt.Println(a.Union(b)) // {1, 2, 3, 4, 5}\n  fmt.Println(a.Intersect(b)) // {3}\n  fmt.Println(a.Difference(b)) // {1, 2}\n\n  a2 := sets.New(1, 2)\n  fmt.Println(a2.Subset(a)) // true\n  fmt.Println(a.Subset(a2)) // false\n  fmt.Println(a.Equal(b)) // false\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr167%2Fgo-sets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr167%2Fgo-sets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr167%2Fgo-sets/lists"}