ui

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Unlicense Imports: 4 Imported by: 0

Documentation

Overview

Package ui is an internal package of twtr/cmd.

It provides helpers interact with the user.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInput

func GetInput(prompt string, def string) (val string, err error)

GetInput from os.Stdin, takes a default value, if the user doesn't provide any input, the default value is returned.

func GetInputBool

func GetInputBool(prompt string, def bool) (val bool, err error)

GetInputBool from os.Stdin, takes a default and parses the user's input as a boolean, or returns the default if the user doesn't provide any input.

Types

This section is empty.

Jump to

Keyboard shortcuts

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