{"id":38765011,"url":"https://github.com/rellyson/go-generics-structs","last_synced_at":"2026-01-17T12:00:37.664Z","repository":{"id":131909805,"uuid":"480934776","full_name":"rellyson/go-generics-structs","owner":"rellyson","description":"Generics and structs usage example (available in go \u003e=1.18 version)","archived":false,"fork":false,"pushed_at":"2022-04-12T20:25:31.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-06-20T20:55:58.558Z","etag":null,"topics":["generics","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rellyson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-12T18:50:03.000Z","updated_at":"2022-04-12T20:24:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"19c8f66e-d237-47a7-af30-37d82789f7b6","html_url":"https://github.com/rellyson/go-generics-structs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rellyson/go-generics-structs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rellyson%2Fgo-generics-structs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rellyson%2Fgo-generics-structs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rellyson%2Fgo-generics-structs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rellyson%2Fgo-generics-structs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rellyson","download_url":"https://codeload.github.com/rellyson/go-generics-structs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rellyson%2Fgo-generics-structs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28508464,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T11:50:55.898Z","status":"ssl_error","status_checked_at":"2026-01-17T11:50:55.569Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["generics","golang"],"created_at":"2026-01-17T12:00:19.057Z","updated_at":"2026-01-17T12:00:37.490Z","avatar_url":"https://github.com/rellyson.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Golang - Using Generics with Structs\n\n## Motivation\nSince version 1.18, Go comes shipped with support for generics. This project aims to exercise the usage of generics and structs, building flexible packages.\n\n## About\nA vehicle dealership need a way to manage their inventory. They have three types of vehicles: cars, motorcycles and trucks.\nAs a solution, we going to implement an inventory. The inventory implementation must have generics types to give a flexible way of managing the inventory and provide an easy implementation for new types of vehicles.\n\n## Links\n\n- [Official generics tutorial](https://go.dev/doc/tutorial/generics)\n- [Go 1.18 Release Notes](https://go.dev/doc/go1.18)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frellyson%2Fgo-generics-structs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frellyson%2Fgo-generics-structs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frellyson%2Fgo-generics-structs/lists"}