stdinutil

package
v2.3.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2018 License: Apache-2.0 Imports: 10 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFromStdin

func GetFromStdin(params *GetFromStdinParams) *string

GetFromStdin asks the user a question and returns the answer

Types

type GetFromStdinParams added in v0.1.1

type GetFromStdinParams struct {
	Question               string
	DefaultValue           string
	ValidationRegexPattern string
	InputTerminationString string
	IsPassword             bool
}

GetFromStdinParams defines a question and its answerpatterns

Jump to

Keyboard shortcuts

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