inputs

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Confirm

func Confirm(title string, opts ...Option[bool]) error

func Select

func Select[T comparable](title string, opts ...Option[T]) error

func Text

func Text(title string, opts ...Option[string]) error

Types

type Option

type Option[T any] func(*options[T])

func WithDescription

func WithDescription[T any](desc string) Option[T]

func WithOptions

func WithOptions[T any](opts map[string]T) Option[T]

func WithPlaceholder

func WithPlaceholder[T any](placeholder string) Option[T]

func WithValidation

func WithValidation[T any](validation func(val T) error) Option[T]

func WithValue

func WithValue[T any](value *T) Option[T]

Jump to

Keyboard shortcuts

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