text

package
v0.0.0-...-444ad2e Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mod

type Mod func(text *Text) error

func WithDefaultValue

func WithDefaultValue(defVal string) Mod

func WithExpected

func WithExpected(regExpression string) Mod

func WithMaxChars

func WithMaxChars(maxChars int) Mod

type Text

type Text struct {
	// contains filtered or unexported fields
}

Text represent an Text Runtime type of any question

func New

func New(mods ...Mod) (*Text, error)

New creates a new Text modified with options

func (*Text) Type

func (text *Text) Type() collecta.InputType

Type returns the type of text, in this case: "text"

func (*Text) Value

func (text *Text) Value() ([]string, error)

Jump to

Keyboard shortcuts

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