Versions in this module Expand all Collapse all v0 v0.3.0 Jul 12, 2025 Changes in this version + func MustMapSlice[S any, D any](m Mapper, src S) D + func MustMap[S any, D any](m Mapper, src S) D v0.2.0 Jul 11, 2025 Changes in this version + var ErrSrcAndDestMustBeSlices = errors.New("both source and destination must be slices") + func Has[S any, D any](m Mapper) bool + func MapSlice[S any, D any](m Mapper, src S) (D, error) + func Remove[S any, D any](m Mapper) type Mapper + func New() Mapper v0.1.0 Jul 7, 2025 Changes in this version + var ErrNoMapping = errors.New("no mapping function registered for this type pair") + var Global = NewMapper() + func AutoMap[S any, D any](src S) D + func HasMapping[S any, D any](m Mapper) bool + func List(m Mapper) []string + func Map[S any, D any](m Mapper, src S) (D, error) + func RegisterAutoMap[S any, D any](m Mapper) + func Register[S any, D any](m Mapper, fn func(S) D) + func RemoveMapping[S any, D any](m Mapper) + type Mapper struct + func NewMapper() Mapper