{"id":37212473,"url":"https://github.com/kmikiy/helper","last_synced_at":"2026-01-15T00:26:49.735Z","repository":{"id":128823082,"uuid":"165913529","full_name":"kmikiy/helper","owner":"kmikiy","description":"Simple helper library for golang pointers \u0026 built-in types ","archived":false,"fork":false,"pushed_at":"2019-01-15T19:51:46.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-14T15:34:12.799Z","etag":null,"topics":["builtin","golang","golang-library","golang-package","pointers","primitives"],"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/kmikiy.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":"2019-01-15T19:49:36.000Z","updated_at":"2019-01-15T19:53:52.000Z","dependencies_parsed_at":"2023-03-24T12:33:52.582Z","dependency_job_id":null,"html_url":"https://github.com/kmikiy/helper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kmikiy/helper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kmikiy%2Fhelper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kmikiy%2Fhelper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kmikiy%2Fhelper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kmikiy%2Fhelper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kmikiy","download_url":"https://codeload.github.com/kmikiy/helper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kmikiy%2Fhelper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28439701,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T22:37:52.437Z","status":"ssl_error","status_checked_at":"2026-01-14T22:37:31.496Z","response_time":107,"last_error":"SSL_read: 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":["builtin","golang","golang-library","golang-package","pointers","primitives"],"created_at":"2026-01-15T00:26:49.260Z","updated_at":"2026-01-15T00:26:49.724Z","avatar_url":"https://github.com/kmikiy.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# helper\n\nhelper consists of two packages `ptr` \u0026 `labaled`. \n\n`ptr` makes it easy to create pointers of common built-in types. `labeled` is useful for adding additional information when using built-in types.\n\n\n## Installation\n\n```sh\ngo get github.com/kmikiy/helper/...\n```\n\n## Example\n\n### ptr\n\n```go\nimport (\n    \"log\"\n    \"time\"\n\n    \"github.com/kmikiy/helper/ptr\"\n)\n\ntype Subscription struct {\n    Name         string\n    SubscribedAt *time.Time\n}\n\nfunc main() {\n    // with \"github.com/kmikiy/helper/ptr\"\n    sub := Subscription{\n        Name:         \"pro\",\n        SubscribedAt: ptr.Time(time.Now()),\n    }\n\n    log.Printf(\"sub: %#+v\\n\", sub)\n    \n    // without \"github.com/kmikiy/helper/ptr\"\n    now := time.Now() \n    sub := Subscription{\n        Name:         \"pro\",\n        SubscribedAt: \u0026now,\n    }\n\n    log.Printf(\"sub: %#+v\\n\", sub)\n}\n\n```\n\n\n\n### labeled\n\n```go\nimport (\n    \"log\"\n    \"time\"\n\n    l \"github.com/kmikiy/helper/labeled\"\n)\n\nfunc fetch(limit int, offset int) {\n    log.Printf(\"limit: %#+v\\n\", offset)\n    log.Printf(\"offset: %#+v\\n\", offset)\n}\n\nfunc main() {\n    // with \"github.com/kmikiy/helper/labeled\"\n    fetch(l.Int(\"limit\", 1), l.Int(\"offset\", 20))\n    \n    // without \"github.com/kmikiy/helper/labeled\"\n    fetch(1, 20)\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkmikiy%2Fhelper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkmikiy%2Fhelper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkmikiy%2Fhelper/lists"}