Thanks to visit codestin.com
Credit goes to github.com

Skip to content

default values #20

@nocquidant

Description

@nocquidant

Hello, thank you for creating this project.
I was wondering how to use a default value.

Something like that produce a hint in gray (abc):
val, err := prompt.New().Ask("Please provide "+label+":").Input("abc", input.WithValidateFunc(validateString))

But I want to enter the default value (abc) without typing...
Is it possible? Trying enter, tab... doesn't seem to work.
Thanks
-- nick

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions