prompt

package
v1.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Utility package to read input from terminal.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DateValidator

func DateValidator(text string) error

func EmailValidator

func EmailValidator(email string) error

Very simple email validation to prevent obvious mistakes.

func NonemptyValidator

func NonemptyValidator(input string) error

Ensure non-empty strings.

func Read

func Read(prompt string, validators ...func(string) error) string

Read will prompt the user for a string input, all validators must pass to return

func RegexValidator

func RegexValidator(text string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL