merge

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendTriggerFn

func AppendTriggerFn(new, current, result any) (any, bool, error)

func Auto

func Auto[T any](opt, def *T, triggers ...Trigger) (*T, error)

Auto recursively merge optional pointer with default one.

func DebugTriggerFn

func DebugTriggerFn(path string, new, current, result any) (any, bool, error)

func UniqueTriggerFn

func UniqueTriggerFn(new, current, result any) (any, bool, error)

Types

type Trigger

type Trigger func(path string, new, current, result any) (any, bool, error)

func NewTrigger

func NewTrigger(path string, triggerFn TriggerFn) Trigger

type TriggerFn

type TriggerFn func(new, current, result any) (any, bool, error)

Jump to

Keyboard shortcuts

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