Categorygithub.com/sirkon/pubcopy
modulepackage
0.0.1
Repository: https://github.com/sirkon/pubcopy.git
Documentation: pkg.go.dev

# README

PubCopy

This package provides a reflect-based copying of values where only public fields of structures to be copied

Usage example

if err := pubcopy.Copy(src, dst, pubcopy.PublicOnly); err != nil {
    …
}

# Functions

Copy copies src into dst using a filtering provided by filter implementation.

# Variables

PublicOnly lets only public fields and types to go.

# Interfaces

Filter a representation of filter to decide whether a field or object to be copied depending on field name and/or type.