ui

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interactive

type Interactive struct {
	// contains filtered or unexported fields
}

Interactive will prompt a user

func NewInteractive

func NewInteractive() *Interactive

NewInteractive will create a interactive ui object

func (*Interactive) Prompt

func (i *Interactive) Prompt(msg, recipient, method string) bool

Prompt will give the user `msg` and prompt for confirmation

type UI

type UI interface {
	Prompt(string, string, string) bool
}

UI is an interface for implemenations of interactivity

Jump to

Keyboard shortcuts

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