MCPcopy
hub / github.com/darccio/mergo / WithTransformers

Function WithTransformers

merge.go:330–334  ·  view source on GitHub ↗

WithTransformers adds transformers to merge, allowing to customize the merging of some types.

(transformers Transformers)

Source from the content-addressed store, hash-verified

328
329// WithTransformers adds transformers to merge, allowing to customize the merging of some types.
330func WithTransformers(transformers Transformers) func(*Config) {
331 return func(config *Config) {
332 config.Transformers = transformers
333 }
334}
335
336// WithOverride will make merge override non-empty dst attributes with non-empty src attributes values.
337func WithOverride(config *Config) {

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…