yesno

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: 1 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(yesNo *YesNo) error

func WithDefaultValue

func WithDefaultValue(defaultValue bool) Mod

type YesNo

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

YesNo represent an YesNo Runtime type of any question

func New

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

New creates a new YesNo modified with options

func (*YesNo) Type

func (yesNo *YesNo) Type() collecta.InputType

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

func (*YesNo) Value

func (yesNo *YesNo) Value() ([]string, error)

Jump to

Keyboard shortcuts

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