prefix.go
func (ui *PrefixUI) Ask(message, trim string) (string, error) {
	if ui.AskPrefix == " " { //Lets keep the space if they want one
		message = ui.AskPrefix + message
	} else if ui.AskPrefix != "" {
		message = ui.AskPrefix + " " + message
	}
	res, err := ui.UI.Ask(message, trim)
	return res, err
}
func (ui *PrefixUI) Ask(message, trim string) (string, error) {
	if ui.AskPrefix == " " { //Lets keep the space if they want one
		message = ui.AskPrefix + message
	} else if ui.AskPrefix != "" {
		message = ui.AskPrefix + " " + message
	}
	res, err := ui.UI.Ask(message, trim)
	return res, err
}
func ( ui * PrefixUI ) Ask ( message , trim string ) ( string , error ) { if ui . AskPrefix == " " { //Lets keep the space if they want one message = ui . AskPrefix + message } else if ui . AskPrefix != " " { message = ui . AskPrefix + " " + message } res , err := ui . UI . Ask ( message , trim ) return res , err }
//Ask will call UI.Ask with message then wait for UI.Ask to return a response and/or error.
//It will clean the response by removing any carriage returns and new lines that if finds.
//Then it will trim the message using the trim variable.
//Use and empty string to specify you do not want to trim.
//If a message is not used ("") then it will not prompt user before waiting on a response.
//AskPrefix is used to prefix message.
Ask will call UI . Ask with message then wait for UI . Ask to return a response and / or error . It will clean the response by removing any carriage returns and new lines that if finds . Then it will trim the message using the trim variable . Use and empty string to specify you do not want to trim . If a message is not used ( ) then it will not prompt user before waiting on a response . AskPrefix is used to prefix message .