Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFileDirs ¶
CreateFileDirs creates the directories for a file path if they do not exist.
func IsJsonOrYaml ¶
isJsonOrYaml returns error if the file is not a json or yaml file.
func RemoveTrailingWhitespace ¶
RemoveTrailingWhitespace removes trailing whitespace from each line in a byte array. This is useful for removing trailing whitespace from a yaml file before it is marshalled into a struct. Prevents strings from being collapsed into a single line by yaml parser.
func WriteOutput ¶
WriteOutput writes to the provided output file or to stdout by default.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.