prompt

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package prompt are functions that parse stardard input loops.

Index

Constants

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

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