{"id":17865322,"url":"https://github.com/isensee-bastian/set-interface","last_synced_at":"2026-05-03T02:40:26.213Z","repository":{"id":95454773,"uuid":"481994394","full_name":"isensee-bastian/set-interface","owner":"isensee-bastian","description":"Tutorial code for my video Generics Part 2: Using the empty Interface instead","archived":false,"fork":false,"pushed_at":"2022-04-15T15:05:01.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T22:11:26.215Z","etag":null,"topics":["basic-programming","beginner-tutorial-series","code-reuse","data-structures","generics","golang","interface","learn-to-code","maps","sets","switch-case","tutorial","type-assertions","youtube"],"latest_commit_sha":null,"homepage":"https://youtu.be/ASUf380d974","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/isensee-bastian.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":"2022-04-15T15:02:16.000Z","updated_at":"2022-04-15T15:12:55.000Z","dependencies_parsed_at":"2023-04-13T00:16:24.067Z","dependency_job_id":null,"html_url":"https://github.com/isensee-bastian/set-interface","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/isensee-bastian/set-interface","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isensee-bastian%2Fset-interface","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isensee-bastian%2Fset-interface/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isensee-bastian%2Fset-interface/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isensee-bastian%2Fset-interface/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/isensee-bastian","download_url":"https://codeload.github.com/isensee-bastian/set-interface/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isensee-bastian%2Fset-interface/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32556771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T00:31:16.350Z","status":"online","status_checked_at":"2026-05-03T02:00:09.297Z","response_time":103,"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":["basic-programming","beginner-tutorial-series","code-reuse","data-structures","generics","golang","interface","learn-to-code","maps","sets","switch-case","tutorial","type-assertions","youtube"],"created_at":"2024-10-28T09:20:30.789Z","updated_at":"2026-05-03T02:40:26.196Z","avatar_url":"https://github.com/isensee-bastian.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Generics Part 2: Set Implementation with empty interface\n* Why generalize our set implementation\n    * Allows code reuse with other element types\n* Using the empty interface type\n    * No restrictions, satisfied by every specifc type\n    * Allows code reuse\n    * Common solution before Go 1.18\n    * Element types can be mixed (often not wanted)\n    * No guarantees by the compiler, requires type assertions at runtime\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisensee-bastian%2Fset-interface","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fisensee-bastian%2Fset-interface","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisensee-bastian%2Fset-interface/lists"}