Documentation ¶
Index ¶
- func ExpandPath(p string) string
- func HashString(s string) (string, error)
- 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 HashString ¶ added in v1.15.1
HashString Takes String and returns a sha1 hash represented as a string
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 tries to marshal the input struct into yaml content
func YamlUnmarshal ¶
YamlUnmarshal unmarshals the yaml content to an interface
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.