merge

package
v0.29.4-rc.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultModel

type DefaultModel struct {
	// contains filtered or unexported fields
}

func NewDefaultModel

func NewDefaultModel(content map[any]any, path string) *DefaultModel

func NewDefaultModelFromStruct

func NewDefaultModelFromStruct(content any, path string, skipEmpty bool) *DefaultModel

func (*DefaultModel) Content

func (b *DefaultModel) Content() map[any]any

func (*DefaultModel) Get

func (b *DefaultModel) Get() (map[any]any, error)

func (*DefaultModel) Path

func (b *DefaultModel) Path() string

func (*DefaultModel) Walk

func (b *DefaultModel) Walk(mergedSection map[any]any) error

type Mergeable

type Mergeable interface {
	Get() (map[any]any, error)
	Walk(mergedSection map[any]any) error
	Content() map[any]any
	Path() string
}

type Merger

type Merger struct {
	// contains filtered or unexported fields
}

func NewMerger

func NewMerger(b, c Mergeable) *Merger

func (*Merger) GetBase

func (m *Merger) GetBase() *Mergeable

func (*Merger) GetCustom

func (m *Merger) GetCustom() *Mergeable

func (*Merger) Merge

func (m *Merger) Merge() (map[any]any, error)

Jump to

Keyboard shortcuts

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