gencon

package module
v0.0.0-...-ffddf20 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AreDependenciesFilled

func AreDependenciesFilled(s interface{}, deps []string) bool

func GetDefault

func GetDefault(s interface{}, field string) string

func GetDependencies

func GetDependencies(s interface{}, field string) []string

func GetFieldCompleter

func GetFieldCompleter(s interface{}, field, fieldPath string) (prompt.Completer, error)

func GetMethod

func GetMethod(s interface{}, method string) reflect.Value

func GetTag

func GetTag(s interface{}, field, name string) []string

func IsOmitempty

func IsOmitempty(s interface{}, field string) bool

Types

type Option

type Option func(w *Wizard) error

func OptionSkipFilled

func OptionSkipFilled() Option

type SuggestCache

type SuggestCache map[string][]prompt.Suggest

func (SuggestCache) Find

func (c SuggestCache) Find(findKey string) []prompt.Suggest

find cached input that is a substring of findKey

type Wizard

type Wizard struct {
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) (*Wizard, error)

func (*Wizard) Prompt

func (w *Wizard) Prompt(c interface{}, opts ...prompt.Option) error

Jump to

Keyboard shortcuts

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