form

package
v0.0.0-...-f9a80a1 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Confirm

func Confirm(title string) bool

func FormInput

func FormInput(props FormProps) (string, string, error)

func Input

func Input(title string, defaultValue string) (string, error)

func MultiSelectForm

func MultiSelectForm(title string, options []string) (Values []string, err error)

func SelectForm

func SelectForm(title string, options []config.Option) (label, value string, err error)

func SelectFormWithStringSlice

func SelectFormWithStringSlice(title string, options []string) (label, value string, err error)

Types

type FormProps

type FormProps struct {
	Message      string
	Field        string
	Field2       string
	FieldLength  int
	Field2Length int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳