prompt

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PortMin = 0     // PortMin is the lowest permitted network port
	PortMax = 65535 // PortMax is the largest permitted network port
)

Variables

This section is empty.

Functions

func Dir

func Dir() string

Dir asks the user for a directory path and saves it.

func Port

func Port() int64

Port asks the user for a port configuration value and returns the input.

func String

func String(keep string) string

String asks the user for a string configuration value and saves it.

func YN

func YN(query string, yes bool) bool

YN asks the user for a yes or no input.

Types

This section is empty.

Jump to

Keyboard shortcuts

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