Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var StdoutPrompter = func(msg string, needConfirm bool) { fmt.Fprintln(os.Stdout, msg) if needConfirm { fmt.Fprintln(os.Stdout, "Press [Enter] to confirm") scanner := bufio.NewScanner(os.Stdin) scanner.Scan() scanner.Err() } }
StdoutPrompter uses stdin and stdout to prompt user information
Functions ¶
This section is empty.
Types ¶
type URLOpener ¶
type URLOpener func(url string)
URLOpener is the function opens URL for user
BrowserOpener opens URL by opening browser
func PromptOpener ¶
PromptOpener opens URL by prompt message to user
Click to show internal directories.
Click to hide internal directories.