Documentation ¶
Overview ¶
Package merge provides a utility for merging structs of different types using reflection Borrowed from https://stackoverflow.com/a/45258790/1562480 written by Pavlo Strokov
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bind ¶
type Bind struct {
From, To string
Translator Translator
}
type Translator ¶
type Translator func(value interface{}) (interface{}, error)
Click to show internal directories.
Click to hide internal directories.