Documentation
¶
Index ¶
- Constants
- func WithBoolAnswer(question string, yesno ...BoolAnswer) bool
- func WithDurationAnswer(question string) core.Duration
- func WithFloat64Answer(question string, min, max float64) float64
- func WithInt64Answer(question string) int64
- func WithSingleChoiceAnswer(question string, choices ...string) string
- func WithStringAnswer(questionText string) string
- type BoolAnswer
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 WithFloat64Answer ¶
func WithInt64Answer ¶
func WithSingleChoiceAnswer ¶
func WithStringAnswer ¶
Types ¶
type BoolAnswer ¶ added in v0.11.0
type BoolAnswer = bool
Click to show internal directories.
Click to hide internal directories.