Registry / utility / jinzhu-copier

jinzhu-copier

JSON →
library0.4.0gogounverified

Go library for copying values between structs.

go get github.com/jinzhu/copier
INSTALL
IMPORT
SIG · JINZHU-COPIER
J
jinzhu-copier
utilitygov0.4.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

copier
github.com/jinzhu/copier

Copies fields from User to Employee.

package main import ( "fmt" "github.com/jinzhu/copier" ) type User struct { Name string } type Employee struct { Name string } func main() { user := User{Name: "Alice"} employee := Employee{} copier.Copy(&employee, &user) fmt.Println(employee.Name) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.4.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
jinzhu-copier — go get jinzhu-copier · libregistry