{"id":26871427,"url":"https://github.com/popbones/goo","last_synced_at":"2025-03-31T07:19:30.286Z","repository":{"id":47646700,"uuid":"516225815","full_name":"popbones/goo","owner":"popbones","description":"goo - Go goodies 😂","archived":false,"fork":false,"pushed_at":"2022-08-23T01:27:38.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-20T03:27:44.163Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/popbones.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":"2022-07-21T04:37:57.000Z","updated_at":"2022-07-21T05:47:22.000Z","dependencies_parsed_at":"2022-07-22T11:18:02.035Z","dependency_job_id":null,"html_url":"https://github.com/popbones/goo","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/popbones%2Fgoo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/popbones%2Fgoo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/popbones%2Fgoo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/popbones%2Fgoo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/popbones","download_url":"https://codeload.github.com/popbones/goo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246429472,"owners_count":20775809,"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":"2025-03-31T07:19:29.622Z","updated_at":"2025-03-31T07:19:30.276Z","avatar_url":"https://github.com/popbones.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# goo\ngoo - Go goodies \n\nA joke package that includes things that should be in the STD since generics.\n\nMost of them are written by Copilot.\n\n- `func Must[T any](v T, err error) T`\n\n    Returns `v` if `err` is `nil`, otherwise panic.\n\n- `func Fallback[T comparable](v T, fallback T) T`\n\n    Returns `v` if `v` is not empty value for `T`, otherwise return `fallback`.\n\n- `func MapSlice[E any, V any](s []E, f func(E) V) []V`\n\n    Map slice.\n\n- `func ReduceSlice[E any, V any](s []E, initial V, f func(V, E) V) V`\n\n    Reduce slice.\n\n- `func ParseNumber[T Number](s string) (T, error)`\n\n    Parse a number from string.\n\n- `func Ptr[T any](v T) *T`\n\n    Returns pointer to value.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpopbones%2Fgoo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpopbones%2Fgoo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpopbones%2Fgoo/lists"}