{"id":31287282,"url":"https://github.com/iqbalmind/go-deepcopy","last_synced_at":"2025-09-24T11:03:15.457Z","repository":{"id":316023281,"uuid":"1061612180","full_name":"IqbalMind/go-deepcopy","owner":"IqbalMind","description":"A reflection-based deep copy library for Go. Supports structs, slices, maps, arrays, pointers, interfaces, and channels.","archived":false,"fork":false,"pushed_at":"2025-09-22T07:46:17.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-22T09:23:16.446Z","etag":null,"topics":["clone","deepcopy","golang","library","reflection"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/iqbalmind/go-deepcopy","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/IqbalMind.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-22T06:44:23.000Z","updated_at":"2025-09-22T09:04:15.000Z","dependencies_parsed_at":"2025-09-22T09:23:19.631Z","dependency_job_id":"6628e6f1-7ac0-4242-858b-6a284c66a5e2","html_url":"https://github.com/IqbalMind/go-deepcopy","commit_stats":null,"previous_names":["iqbalmind/go-deepcopy"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/IqbalMind/go-deepcopy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IqbalMind%2Fgo-deepcopy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IqbalMind%2Fgo-deepcopy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IqbalMind%2Fgo-deepcopy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IqbalMind%2Fgo-deepcopy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IqbalMind","download_url":"https://codeload.github.com/IqbalMind/go-deepcopy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IqbalMind%2Fgo-deepcopy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276600975,"owners_count":25671344,"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","status":"online","status_checked_at":"2025-09-23T02:00:09.130Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["clone","deepcopy","golang","library","reflection"],"created_at":"2025-09-24T11:01:12.892Z","updated_at":"2025-09-24T11:03:15.450Z","avatar_url":"https://github.com/IqbalMind.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-deepcopy\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/iqbalmind/go-deepcopy.svg)](https://pkg.go.dev/github.com/iqbalmind/go-deepcopy)\n[![Go Report Card](https://goreportcard.com/badge/github.com/iqbalmind/go-deepcopy)](https://goreportcard.com/report/github.com/iqbalmind/go-deepcopy)\n\nA simple reflection-based **deep copy library for Go**, supporting:\n- Structs\n- Pointers\n- Slices\n- Maps\n- Arrays\n- Interfaces\n- Channels\n\n## 🚀 Installation\n\n```bash\ngo get github.com/iqbalmind/go-deepcopy\n```\n\n## 📖 Usage\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"github.com/iqbalmind/go-deepcopy\"\n)\n\ntype Address struct {\n    Street string\n    City   string\n}\n\ntype Person struct {\n    Name    string\n    Age     int\n    Address *Address\n}\n\nfunc main() {\n    original := Person{\n        Name: \"Dewi\",\n        Age:  28,\n        Address: \u0026Address{\n            Street: \"Jl. Braga No. 99\",\n            City:   \"Bandung\",\n        },\n    }\n\n    cloned, _ := deepcopy.DeepCopy(original)\n    clonedPerson := cloned.(Person)\n\n    // Modify the cloned struct\n    clonedPerson.Name = \"Budi\"\n    clonedPerson.Address.Street = \"Jl. Asia Afrika No. 45\"\n\n    fmt.Println(\"Original:\", original.Name, original.Address.Street)\n    fmt.Println(\"Cloned:\", clonedPerson.Name, clonedPerson.Address.Street)\n}\n\n```\n\n## Output:\n```bash\nOriginal: Dewi Jl. Braga No. 99\nCloned:   Budi Jl. Asia Afrika No. 45\n```\n\n## 🧪 Running Tests\n``go\ngo test -v\n``\n\n## 📜 License\nMIT © 2025 [iqbalmind](https://github.com/iqbalmind)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiqbalmind%2Fgo-deepcopy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiqbalmind%2Fgo-deepcopy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiqbalmind%2Fgo-deepcopy/lists"}