Documentation
¶
Index ¶
- type DiffResult
- type PathMap
- func (pm PathMap) Composite(pmList []PathMapInterface) error
- func (pathMap PathMap) DeleteValue(path string) bool
- func (pm PathMap) Diff(other PathMapInterface) (*DiffResult, error)
- func (pm PathMap) GetKeys() []string
- func (pm PathMap) GetMapInterface() map[string]interface{}
- func (pm PathMap) GetOption(path string) (map[string]string, bool)
- func (pm PathMap) GetPath(path string) ([]string, bool)
- func (pm PathMap) GetValue(path string) (any, bool)
- func (pm PathMap) SetValue(path string, value any, opt map[string]string) error
- type PathMapInterface
- type PathMapValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiffResult ¶
func NewDiffResult ¶
func NewDiffResult() *DiffResult
type PathMap ¶
type PathMap map[string]*PathMapValue
func NewPathMap ¶
func (PathMap) Composite ¶
func (pm PathMap) Composite(pmList []PathMapInterface) error
func (PathMap) DeleteValue ¶
func (PathMap) Diff ¶
func (pm PathMap) Diff(other PathMapInterface) (*DiffResult, error)
func (PathMap) GetMapInterface ¶
type PathMapInterface ¶
type PathMapInterface interface { SetValue(path string, value any, opt map[string]string) error GetKeys() []string GetValue(path string) (any, bool) GetMapInterface() map[string]interface{} DeleteValue(path string) bool Diff(other PathMapInterface) (*DiffResult, error) Composite([]PathMapInterface) error }
type PathMapValue ¶
type PathMapValue struct {
// contains filtered or unexported fields
}
func NewPathMapValue ¶
func NewPathMapValueSafe ¶
func NewPathMapValueSafe(path []string, value any, option map[string]string) *PathMapValue
Click to show internal directories.
Click to hide internal directories.