mapper

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL