Versions in this module Expand all Collapse all v1 v1.3.3 Mar 28, 2024 Changes in this version + var ErrInvalidDigitString = errors.New("invalid number") + var ErrInvalidEthereumAddress = errors.New("invalid ethereum address") + var ErrInvalidFileExtension = errors.New("invalid file extension") + var ErrInvalidInt64String = errors.New("invalid int64 string") + var ErrInvalidURL = errors.New("invalid URL") + func DigitsStringValidator(ttd string) error + func DirPathValidator(ans string) error + func EthAddressValidator(address string, allowEmpty bool) error + func FilePathValidator(ans interface{}) error + func GraffitiValidator(str string) error + func Int64Validator(ans interface{}) error + func PrintFileContent(w io.Writer, path string) error + func URLValidator(ans interface{}) error + func WriteListClientsTable(w io.Writer, data *ListClientsTable) + func WriteListNetworksTable(w io.Writer, data []string) + func WriteRandomizedClientsTable(w io.Writer, data RandomizedClientsTable) + func WriteSimpleTable(w io.Writer, data *SimpleTableData) + type ListClientsTable struct + ClientTypes []string + Clients [][]string + type Prompter interface + Confirm func(string, bool) (bool, error) + EthAddress func(prompt string, defaultValue string, required bool) (result string, err error) + Input func(prompt, defaultValue string, required bool, validator func(string) error) (result string, err error) + InputDirPath func(prompt, defaultValue string, required bool) (result string, err error) + InputFilePath func(prompt, defaultValue string, required bool, fileExtensions ...string) (result string, err error) + InputInt64 func(prompt string, defaultValue int64) (result int64, err error) + InputList func(prompt string, defaultValue []string, validator func([]string) error) (result []string, err error) + InputSecret func(prompt string) (result string, err error) + InputURL func(prompt, defaultValue string, required bool) (result string, err error) + Select func(message string, defaultValue string, options []string) (int, error) + func NewPrompter() Prompter + type RandomizedClientsTable struct + ClientTypes []string + Clients []string + type SimpleTableData struct + Columns [][]*simpletable.Cell + DefaultAlign int + Enumerate bool + Headers []*simpletable.Cell