diff options
Diffstat (limited to 'input/prompt.go')
-rw-r--r-- | input/prompt.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/input/prompt.go b/input/prompt.go index c7887abb..960ecd62 100644 --- a/input/prompt.go +++ b/input/prompt.go @@ -14,6 +14,8 @@ import ( ) // PromptValidator is a validator for a user entry +// If complaint is "", value is considered valid, otherwise it's the error reported to the user +// If err != nil, a terminal error happened type PromptValidator func(name string, value string) (complaint string, err error) // Required is a validator preventing a "" value |