values

package
v0.0.0-...-d0acf64 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertMap

func ConvertMap[T any](m Map) (T, error)

func GetPathHelper

func GetPathHelper[T any](m Map, name string) T

func GetValueForSetFlag

func GetValueForSetFlag(setFlags []string, path string) string

Types

type Map

type Map map[string]any

func CastAsMap

func CastAsMap(current any) (Map, bool)

func MapFromJSON

func MapFromJSON(input []byte) (Map, error)

func MapFromYAML

func MapFromYAML(input []byte) (Map, error)

func MustCastAsMap

func MustCastAsMap(current any) Map

func (Map) GetPath

func (m Map) GetPath(name string) (any, bool)

func (Map) GetPathMap

func (m Map) GetPathMap(s string) (Map, bool)

GetPathMap key.subkey

func (Map) GetPathString

func (m Map) GetPathString(s string) string

func (Map) JSON

func (m Map) JSON() string

func (Map) MergeFrom

func (m Map) MergeFrom(other Map)

func (Map) SetPath

func (m Map) SetPath(paths string, value any) error

func (Map) SetPaths

func (m Map) SetPaths(paths ...string) error

func (Map) SetSpecPaths

func (m Map) SetSpecPaths(paths ...string) error

func (Map) YAML

func (m Map) YAML() string

Jump to

Keyboard shortcuts

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