mapper

package
Version: v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByField

func ByField(from interface{}, to interface{}) error

ByField assigns the value of fields with "mapper" tag from one structs to another struct. It looks for a field with name matching target key in the source struct and assign the values if assignable to another.

func ByNameKey

func ByNameKey(from interface{}, to interface{}) error

ByField assigns the value of fields with "mapper" tag from one structs to another struct. It matches the "name" key on both structs and assign the values if assignable to another.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL