Documentation ¶
Index ¶
- func ExpandPath(p string) string
- func SanitizeString(s string) string
- func StringSlicesEqual(l, r []string) bool
- func StringSlicesEqualIgnoreOrder(l, r []string) bool
- func YAMLToJSON(yamlBytes []byte) ([]byte, error)
- func YamlMarshal(o interface{}) ([]byte, error)
- func YamlUnmarshal(yamlBytes []byte, dest interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandPath ¶
ExpandPath replaces common path aliases: ~ -> $HOME
func SanitizeString ¶
SanitizeString iterated a strings and removes any characters not in the allow list
func StringSlicesEqual ¶
func YAMLToJSON ¶ added in v1.10.0
YAMLToJSON converts yaml to json
func YamlMarshal ¶
YamlMarshal trys to marshal the input struct into yaml content
func YamlUnmarshal ¶
YamlUnmarshal unmarshalls the yaml content to an interface
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.