{"id":23567143,"url":"https://github.com/godeltech/learninganddevelopment.generics-in-go","last_synced_at":"2025-11-01T22:30:43.610Z","repository":{"id":114038764,"uuid":"452649782","full_name":"GodelTech/LearningAndDevelopment.Generics-in-Go","owner":"GodelTech","description":null,"archived":false,"fork":false,"pushed_at":"2022-01-27T11:11:30.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-26T18:19:05.395Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GodelTech.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-01-27T11:09:23.000Z","updated_at":"2022-01-27T11:11:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"17659259-8a1b-4e3b-8ee3-ba70cddb12db","html_url":"https://github.com/GodelTech/LearningAndDevelopment.Generics-in-Go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GodelTech%2FLearningAndDevelopment.Generics-in-Go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GodelTech%2FLearningAndDevelopment.Generics-in-Go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GodelTech%2FLearningAndDevelopment.Generics-in-Go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GodelTech%2FLearningAndDevelopment.Generics-in-Go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GodelTech","download_url":"https://codeload.github.com/GodelTech/LearningAndDevelopment.Generics-in-Go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239340504,"owners_count":19622702,"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":[],"created_at":"2024-12-26T18:19:07.616Z","updated_at":"2025-11-01T22:30:43.357Z","avatar_url":"https://github.com/GodelTech.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About \n\nIn the repository we have a few examples of *generics* usage in Go language. \nAll those examples had been written and verified using Go1.18 beta1.\n\nBelow, under the \"Project Structure\" section you could read details about each example. \n\nMore information regarding Generics in Golang you can find in the Godel blog. \n\n# Project Structure\n\n- cmd/comparable \n\nshows how to use *comparable* constraint in generic functions;\n\n- cmd/concat\n\nshows how to use an interface as a constraint in generic functions;\n\n- cmd/filter\n\nshows how to use *any* in generic functions and how to use generics in your code at all;\n\n- cmd/sum\n\nshows how to use *union types* in your custom interfaces;\n\n- cmd/zeros\n\nan example of what's happening with *empty values* when you use generic functions.\n\n# How to Run\n\nJust like any other CLI Go application: \n\n```shell\ngo run cmd/{APP_NAME_HERE}/main.go\n```\nfor example: \n```shell\ngo run cmd/comparable/main.go\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgodeltech%2Flearninganddevelopment.generics-in-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgodeltech%2Flearninganddevelopment.generics-in-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgodeltech%2Flearninganddevelopment.generics-in-go/lists"}