Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatCommentAsPlainText ¶
FormatCommentAsPlainText removes `#` characters from the comment and handles multiline whitespaces, returning a cleaned comment string.
Parameters:
- comment: The comment string to format.
Returns:
- string: The cleaned comment string.
func ReadYamlFilesFromDirectory ¶
ReadYamlFilesFromDirectory reads all YAML files from the specified directory and returns a map where the keys are file paths and the values are the file contents.
Parameters:
- filesystem: An interface for interacting with the file system.
- directory: The directory from which to read YAML files.
Returns:
- map[string][]byte: A map of file paths to their respective contents.
func RemoveYamlDocumentSeparators ¶
RemoveYamlDocumentSeparators removes YAML document separators ("---" and "...") from the given YAML content.
Parameters:
- yamlContent: The content of the YAML file.
Returns:
- []byte: The cleaned YAML content without document separators.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.