communication

package
v0.0.0-...-c25bf2c Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskInt

func AskInt(question string) (int, error)

func AskPrintf

func AskPrintf(text string, values ...interface{})

func AskSprint

func AskSprint(text string) string

func AskSprintf

func AskSprintf(text string, values ...interface{}) string

func AskString

func AskString(question string) (string, error)

func ChooseOneColor

func ChooseOneColor(question string, options []ktane.Color) (ktane.Color, error)

func ChooseOneString

func ChooseOneString(question string, options []string) (result string, err error)

func ChooseOneStringable

func ChooseOneStringable[T fmt.Stringer](question string, options []T) (T, error)

func ChooseOneWithMapper

func ChooseOneWithMapper[T any](question string, options []T, mapper func(t T) string) (T, error)

func ConfirmNoDefault

func ConfirmNoDefault(question string) (result bool, err error)

func SafeWord

func SafeWord(input string, wordList map[string]string) string

func Tell

func Tell(text string)

func TellSprint

func TellSprint(text string) string

func TellSprintf

func TellSprintf(text string, values ...interface{}) string

func Tellf

func Tellf(text string, values ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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