Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatTemplateNames ¶
FormatTemplateNames formats the given template names to ensure that they are valid for the gitignore.io API.
It returns a slice of strings containing the formatted template names.
func HandleTemplateNames ¶
HandleTemplateNames is a convenience function that formats and validates template names to ensure that they are valid for the gitignore.io API.
It returns a slice of strings containing the formatted template names or an error if any of these template names are invalid.
See FormatTemplateNames and ValidateTemplateNames for more details.
func ValidateTemplateNames ¶
ValidateTemplateNames checks whether the given template names are provided by the gitignore.io API.
It returns an error if any of the template names are invalid.
Types ¶
This section is empty.