input

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 6 Imported by: 0

README

Input

Input Example

The input component allows you to prompt the user to type a string.

You can found an example with and without options here

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Draw

func Draw(prompt *string, userInput *string, placeholder *string, opts wtopts.Opts) string

func HandleKey

func HandleKey(userInput *string, key string, opts wtopts.Opts) error

func Input

func Input(prompt, placeholder string, customOpts ...wtopts.Opts) (userInput string, err error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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