jinzhu/copier
Copier for golang, copy value from struct to struct and more observed · 2026-08-28
Health v2 · maintenance only
65/100
- Activity 72
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4689
- days_rel: n/a
- days_push: 172
- n_releases_24m: 0
Adoption not part of the score
6175 stars · 497 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A Go library that copies values between structs, slices, and maps using reflection and matching field names. It supports struct tags to enforce, override, or exclude fields during copying, and can map method results to fields.
Use cases
- copy values from one struct to another in go
- map dto fields to domain model structs
- convert between structs with matching field names
- copy a struct into a slice of structs
- copy data between maps in golang
- exclude or require fields when copying structs
When to choose
- you need reflection-based struct-to-struct copying in Go without writing manual mapping code
- you want tag-driven control over which fields are copied, required, or ignored
- you need to copy between slices, structs, and maps with matching names
When to avoid
- you need deep-copy semantics with independent nested allocations
- your structs have mismatched field names requiring custom mapping logic
- you are not working in the Go language
Facets
library · maturity stable
serialization developer-tools developer-tools backend apis go cross-platform struct-copying reflection data-mapping object-mapping field-mapping dto-mapping
1 source
- readme: https://github.com/jinzhu/copier · fetched 2026-08-28 · 94c50a83292f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| jinzhu/copier | main | 65 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem