Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatOrder ¶
FormatOrder takes a slice of strings representing an order, normalizes the strings to lowercase, and removes any duplicates. It returns a new slice that contains only unique, lowercased strings.
func ValidateOrder ¶
ValidateOrder iterates over each item in the order slice and checks if it is present in the availableTemplates slice. If an item is not found, it returns an error with a message indicating the invalid template.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.