merge

package
v2.0.0-...-6ed2e0c Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MergeSliceByFieldName

type MergeSliceByFieldName struct {
	FieldName string
}

MergeSliceByFieldName is a mergo transformer that will merge slices of structs based on a field in the struct

func (MergeSliceByFieldName) Transformer

func (s MergeSliceByFieldName) Transformer(typ reflect.Type) func(dst, src reflect.Value) error

type MergeSliceFunc

type MergeSliceFunc struct {
	SliceType interface{}
	FuncName  string
}

func (MergeSliceFunc) Transformer

func (s MergeSliceFunc) Transformer(typ reflect.Type) func(dst, src reflect.Value) error

Jump to

Keyboard shortcuts

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