Documentation ¶
Index ¶
Constants ¶
View Source
const (
// InvalidArg error message format string for filling in the details of an invalid arg.
InvalidArg = "invalid argument for %q: %q, should be a valid %v"
)
Variables ¶
View Source
var ( // ErrUnexpectedArgs indicates that the given number of arguments exceed the expected number of arguments. ErrUnexpectedArgs = errors.New("unexpected arguments") // ErrNotEnoughArgs indicates that the given number of arguments does not match the expected number of arguments. ErrNotEnoughArgs = errors.New("not enough arguments") )
Functions ¶
func ValidateArgCount ¶
ValidateArgCount validates the number of arguments and returns the corresponding error if there are any.
func ValidateArgs ¶
ValidateArgs validates arguments with the given validate.Argument functions. Two arguments must contain the same number of elements.
func ValidateTemplate ¶
ValidateTemplate validates the template structure given the template path.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.