dixonwille / wmenu

An easy to use menu structure for cli applications that prompts users to make choices.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error strings should not be capitalized

voidint opened this issue · comments

var (
	//ErrInvalid is returned if a response from user was an invalid option
	ErrInvalid = errors.New("Invalid response")

	//ErrTooMany is returned if multiSelect is false and a user tries to select multiple options
	ErrTooMany = errors.New("Too many responses")

	//ErrNoResponse is returned if there were no responses and no action to call
	ErrNoResponse = errors.New("No response")

	//ErrDuplicate is returned is a user selects an option twice
	ErrDuplicate = errors.New("Duplicated response")
)

Thanks for the heads up. This was one of my first Go packages before I knew all the Go idomaticacies.