prompt

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package prompt are functions that parse stardard input loops.

Index

Constants

View Source
const (
	PortMin = input.PortMin // PortMin is the lowest permitted network port.
	PortMax = input.PortMax // 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 IsPort added in v1.10.0

func IsPort(port int) bool

IsPort reports if the port is usable.

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.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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