{"id":13684695,"url":"https://github.com/vikyd/zero","last_synced_at":"2025-06-26T18:07:32.038Z","repository":{"id":57488815,"uuid":"157347644","full_name":"vikyd/zero","owner":"vikyd","description":"Check default zero values of Golang","archived":false,"fork":false,"pushed_at":"2019-09-21T14:29:34.000Z","size":5,"stargazers_count":14,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-01T00:37:54.727Z","etag":null,"topics":["constant","golang","nil","value","zero"],"latest_commit_sha":null,"homepage":"","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/vikyd.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":"2018-11-13T08:41:55.000Z","updated_at":"2022-05-04T13:37:31.000Z","dependencies_parsed_at":"2022-08-29T10:30:20.940Z","dependency_job_id":null,"html_url":"https://github.com/vikyd/zero","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/vikyd/zero","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikyd%2Fzero","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikyd%2Fzero/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikyd%2Fzero/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikyd%2Fzero/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vikyd","download_url":"https://codeload.github.com/vikyd/zero/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikyd%2Fzero/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262119540,"owners_count":23261906,"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":["constant","golang","nil","value","zero"],"created_at":"2024-08-02T14:00:37.215Z","updated_at":"2025-06-26T18:07:32.002Z","avatar_url":"https://github.com/vikyd.png","language":"Go","readme":"# zero\nGolang [The zero value](https://golang.org/ref/spec#The_zero_value)\n\nCheck if a variable is its type's `zero value` or `default value`\n\nThe variable type can be any type:\n\n- nil\n- int\n- float\n- string\n- slice\n- struct\n- channel\n- map\n- byte\n- interface\n\n# Install\n\n`go get -u github.com/vikyd/zero`\n\n# Usage\n\n```go\npackage main\nimport (\n    \"fmt\"\n    \"github.com/vikyd/zero\"\n)\n\nfunc main() {\n    var v int\n    fmt.Println(zero.IsZeroVal(v))\n}\n```\n\n# Thanks\n\n[newacct](https://stackoverflow.com/a/13906031/2752670)\n","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvikyd%2Fzero","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvikyd%2Fzero","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvikyd%2Fzero/lists"}