{"id":13492608,"url":"https://github.com/ramalho/strset","last_synced_at":"2026-01-12T05:06:31.627Z","repository":{"id":57605344,"uuid":"127966594","full_name":"ramalho/strset","owner":"ramalho","description":"A full-featured set type for string elements in Go","archived":false,"fork":false,"pushed_at":"2018-10-16T13:05:32.000Z","size":27,"stargazers_count":21,"open_issues_count":5,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-06T08:38:06.239Z","etag":null,"topics":["go","golang","golang-examples","golang-package","sets","testify"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ramalho.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-04-03T20:43:28.000Z","updated_at":"2024-09-05T05:21:09.000Z","dependencies_parsed_at":"2022-08-27T22:40:52.041Z","dependency_job_id":null,"html_url":"https://github.com/ramalho/strset","commit_stats":null,"previous_names":["standupdev/strset2","standupdev/strset"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ramalho/strset","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramalho%2Fstrset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramalho%2Fstrset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramalho%2Fstrset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramalho%2Fstrset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ramalho","download_url":"https://codeload.github.com/ramalho/strset/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramalho%2Fstrset/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264032220,"owners_count":23546795,"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","golang-examples","golang-package","sets","testify"],"created_at":"2024-07-31T19:01:07.495Z","updated_at":"2026-01-12T05:06:31.580Z","avatar_url":"https://github.com/ramalho.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# strset\n\n[![GoDoc](https://godoc.org/github.com/standupdev/strset?status.svg)](https://godoc.org/github.com/standupdev/strset)\n\nFull-featured Go `Set` type for `string` elements.\n\n```golang\nfunc Example() {\n\ts1 := Make(\"red\", \"green\", \"blue\", \"yellow\")\n\ts2 := MakeFromText(\"yellow green white\")\n\tfmt.Println(s1.Intersection(s2))\n\t// Output: Set{green yellow}\n}\n```\n\nSome features of the `strset.Set` type:\n\n* `Make` builds a set from zero or more strings (or `[]string...`).\n* `MakeFromText` builds a set from a single string with elements separated by whitespace.\n* `String` method returns elements in ascending order.\n* Methods returning new sets: intersection, union, difference, symmetric difference.\n* Methods updating receiver in-place for each operation above.\n* `Pop` method to retrieve and delete one unspecified element.\n* Need an immutable set? Just remove `updaters.go` from the build.\n* 100% test coverage.\n* Not thread-safe.\n\nHappy hacking!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Framalho%2Fstrset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Framalho%2Fstrset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Framalho%2Fstrset/lists"}