{"id":53725,"library":"fatih-set","title":"Set Data Structure","description":"Package set provides both threadsafe and non-threadsafe implementations of a generic set data structure.","status":"active","version":"0.2.1","language":"go","source_language":null,"source_url":"https://github.com/fatih/set","tags":["set","data-structure","generic","threadsafe"],"install":[{"cmd":"go get github.com/fatih/set","lang":"bash","label":"Install github.com/fatih/set"}],"dependencies":[],"imports":[{"symbol":"set","correct":"github.com/fatih/set"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/fatih/set\"\n)\n\nfunc main() {\n\ts := set.New()\n\ts.Add(\"apple\")\n\ts.Add(\"banana\")\n\tfmt.Println(\"Set contains apple:\", s.Has(\"apple\"))\n}","lang":"go","description":"Creates a new set and adds elements."},"warnings":[],"env_vars":null,"search_vec":"'data':2,18,22 'data-structur':21 'generic':16,24 'implement':13 'non':11 'non-threadsaf':10 'packag':4 'provid':6 'set':1,5,17,20 'structur':3,19,23 'threadsaf':8,12,25","created_at":"2026-06-15T07:52:40.271081+00:00","updated_at":"2026-06-15T07:52:40.271081+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/fatih/set","github":"https://github.com/fatih/set","docs":"https://pkg.go.dev/github.com/fatih/set#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}