Skip to content

norunners/assign

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

assign

Go Reference

Package assign assigns values of any source to Go values.

Examples

Assign to a Go value from any source.

err := assign.ToFrom(dst, src)

Assign from any source to a Go value.

err := assign.From(src).To(dst)

Assign with assign.WithTags option.

err := assign.ToFrom(dst, src, assign.WithTags("json"))

Assign with assign.WithoutCycle option.

err := assign.ToFrom(dst, src, assign.WithoutCycle())

Assign from an assign.Source.

src := assign.Of(val)
err := assign.ToFrom(dst, src)

Assign from assign.Assigner to multiple Go values.

assigner := assign.From(src)
err := assigner.To(dst)
errAnother := assigner.To(dstAnother)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published