accessibility

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2025 License: MIT Imports: 2 Imported by: 7

Documentation

Overview

Package accessibility provides accessible functions to capture user input.

Deprecated: use internal/accessibility instead.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PromptBool deprecated

func PromptBool() bool

PromptBool prompts a user for a boolean value.

Given invalid input (non-boolean), the user will continue to be reprompted until a valid input is given, ensuring that the return value is always valid.

Deprecated: use accessibility.PromptBool instead.

func PromptInt deprecated

func PromptInt(prompt string, low, high int) int

PromptInt prompts a user for an integer between a certain range.

Given invalid input (non-integers, integers outside of the range), the user will continue to be reprompted until a valid input is given, ensuring that the return value is always valid.

Deprecated: use accessibility.PromptInt instead.

func PromptString deprecated

func PromptString(prompt string, validator func(input string) error) string

PromptString prompts a user for a string value and validates it against a validator function. It re-prompts the user until a valid input is given.

Deprecated: use accessibility.PromptString instead.

Types

This section is empty.

Jump to

Keyboard shortcuts

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