question

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WithYesAsDefault bool = true
	WithNoAsDefault  bool = false
)

Variables

This section is empty.

Functions

func WithBoolAnswer

func WithBoolAnswer(question string, yesno ...BoolAnswer) bool

func WithDurationAnswer

func WithDurationAnswer(question string) core.Duration

func WithFloat64Answer

func WithFloat64Answer(question string, min, max float64) float64

func WithInt64Answer

func WithInt64Answer(question string) int64

func WithSingleChoiceAnswer

func WithSingleChoiceAnswer(question string, choices ...string) string

func WithStringAnswer

func WithStringAnswer(questionText string) string

Types

type BoolAnswer added in v0.11.0

type BoolAnswer = bool

Jump to

Keyboard shortcuts

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