{"id":41853640,"url":"https://github.com/davidwartell/go-copier","last_synced_at":"2026-01-25T10:34:38.754Z","repository":{"id":65662325,"uuid":"542807960","full_name":"davidwartell/go-copier","owner":"davidwartell","description":"I am the best go struct copier. I even have extensive support for copying protobuf structs and protobuf wrappers.","archived":false,"fork":false,"pushed_at":"2024-01-09T15:20:12.000Z","size":36,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-20T12:51:50.169Z","etag":null,"topics":["copy-structs","deepcopy","go","golang","grpc","grpc-go","protobuf","struct-copier","structtags"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davidwartell.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}},"created_at":"2022-09-28T21:56:53.000Z","updated_at":"2024-01-09T15:23:49.000Z","dependencies_parsed_at":"2024-06-20T12:14:54.498Z","dependency_job_id":null,"html_url":"https://github.com/davidwartell/go-copier","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/davidwartell/go-copier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidwartell%2Fgo-copier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidwartell%2Fgo-copier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidwartell%2Fgo-copier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidwartell%2Fgo-copier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidwartell","download_url":"https://codeload.github.com/davidwartell/go-copier/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidwartell%2Fgo-copier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28751816,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T10:25:12.305Z","status":"ssl_error","status_checked_at":"2026-01-25T10:25:11.933Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["copy-structs","deepcopy","go","golang","grpc","grpc-go","protobuf","struct-copier","structtags"],"created_at":"2026-01-25T10:34:38.628Z","updated_at":"2026-01-25T10:34:38.742Z","avatar_url":"https://github.com/davidwartell.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-copier\n\nI am a struct copier. I copy everything I can and copy more than https://github.com/jinzhu/copier. I also have support for \nprotobuf wrappers.\n\n* Copy from field to field with same name\n* Copy from slice to slice\n* Copy from pointer to non-pointer of same or compatible type\n* Copy from map to map\n* Ignore a field with a tag\n* Map a field with different names with a tag\n* Deep Copy\n* Copy from encoding.TextMarshaler to string\n* Copy from string to encoding.TextUnmarshaler\n* Support type aliases and string enums\n* Override Marshal behavior with CopierMarshaler\n* Override UnMarshal behavior with CopierUnmarshal\n* Copy between unsigned int and *int types (e.g. uint16 to uint32)\n* Copy between signed int and *int types (e.g. int16 to int32) \n* Copy timestamppb.Timestamp to time.Time and *time.Time\n* Copy time.Time and *time.Time to timestamppb.Timestamp\n* Copy durationpb.Duration to time.Duration and *time.Duration\n* Copy time.Duration and *time.Duration to durationpb.Duration\n* Copy from wrapperspb.StringValue to string and *string\n* Copy from string and *string to wrapperspb.StringValue\n* Copy from wrapperspb.BoolValue to bool and *bool\n* Copy from bool and *bool to wrapperspb.BoolValue\n* Copy from wrapperspb.Int32Value to any signed integer or signed integer pointer \n* Copy from any signed integer or signed integer pointer to wrapperspb.Int32Value\n* Copy from wrapperspb.Int64Value to any signed integer or signed integer pointer\n* Copy from any signed integer or signed integer pointer to wrapperspb.Int64Value\n* Copy from wrapperspb.UInt32Value to any unsigned integer or unsigned integer pointer\n* Copy from any unsigned integer or unsigned integer pointer to wrapperspb.UInt32Value\n* Copy from wrapperspb.UInt64Value to any unsigned integer or unsigned integer pointer\n* Copy from any unsigned integer or unsigned integer pointer to wrapperspb.UInt64Value\n* Copy from wrapperspb.FloatValue to any float or float pointer\n* Copy from any float or float pointer to wrapperspb.FloatValue\n* Copy from wrapperspb.DoubleValue to any float or float pointer\n* Copy from any float or float pointer to wrapperspb.DoubleValue\n* Copy from wrapperspb.BytesValue to []byte\n* Copy from []byte to wrapperspb.BytesValue\n\n## Usage\n\n```\nerr := copier.Copy(dstStructPtr, srcStructPtr)\n```\n\nSee copier_test.go for more\n\n### Unit Tests\n```\nmake test\n```\n\n* Linter\n\nRequires golangci-lint.\n```\nbrew install golangci/tap/golangci-lint\nmake golint\n```\n\n* Security Linter\n\n```\nmake gosec\n```\n\n## Contributing\n\nHappy to accept PRs.\n\n# Author\n\n**davidwartell**\n\n* \u003chttp://github.com/davidwartell\u003e\n* \u003chttp://linkedin.com/in/wartell\u003e\n\n## License\n\nReleased under the [Apache License](https://github.com/davidwartell/go-copier/blob/master/LICENSE).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidwartell%2Fgo-copier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidwartell%2Fgo-copier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidwartell%2Fgo-copier/lists"}