https://github.com/sirkon/pubcopy
This package provides a reflect-based copying of values where only public fields of structures to be copied
https://github.com/sirkon/pubcopy
Last synced: 3 months ago
JSON representation
This package provides a reflect-based copying of values where only public fields of structures to be copied
- Host: GitHub
- URL: https://github.com/sirkon/pubcopy
- Owner: sirkon
- License: mit
- Created: 2019-07-27T08:05:58.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-27T15:05:28.000Z (almost 6 years ago)
- Last Synced: 2024-06-20T03:49:05.531Z (12 months ago)
- Language: Go
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PubCopy
This package provides a reflect-based copying of values where only public fields of structures to be copied## Usage example
```go
if err := pubcopy.Copy(src, dst, pubcopy.PublicOnly); err != nil {
…
}
```