Discover Packages
github.com/pb33f/go-yaml
internal
plugin
mergekey
package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Nov 18, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0 modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package mergekey implements the default Merge-Key algorithm.
It is independent of node representation and value construction.
Merge selects entries from the target followed by the ordered sources.
Ordinary duplicates within one mapping retain their original order.
Config controls recognition, repeated directives, and merge conflicts.
Empty Multiple inherits the loader's duplicate-key setting.
Empty Conflicts means first.
Validate checks a configuration without changing it.
type ConflictError struct {
Key any
Group int
Index int
}
ConflictError identifies the later entry in an overlap between mappings.
type Entry[T any ] struct {
Key any
Value T
}
Entry associates a constructed key with a host-owned mapping entry.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.