mapping

package
v0.0.0-...-d95d571 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

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 Layout

type Layout string

type M

type M struct {
	KFrom interface{}
	KTo   string
}

func From

func From(from interface{}, to ...string) M

func (M) GetFrom

func (a M) GetFrom() interface{}

func (M) GetTo

func (a M) GetTo() string

func (M) To

func (a M) To(to string) M

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{})
}

Jump to

Keyboard shortcuts

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