Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Slice ¶
func Slice[V MappingFrom, T MappingTo](queried []V, rows []T, linkKeyFrom string, linkKeyTo string, mapping ...MappingCfgGetter) []T
Types ¶
type MappingCfgGetter ¶
type MappingCfgGetter interface {
GetFrom() interface{}
GetTo() string
}
type MappingFrom ¶
type MappingFrom interface {
GetField(string) interface{}
}
type MappingTo ¶
type MappingTo interface {
MappingFrom
Set(key interface{}, value ...interface{})
}
Click to show internal directories.
Click to hide internal directories.