scanner

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package scanner implements a scanner with methods to prompt for user input.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scanner

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

Scanner represents an active scanner.

func New

func New() *Scanner

New creates a new scanner.

func (*Scanner) PromptLine

func (s *Scanner) PromptLine(prompt string, defaultValue string) string

PromptLine prompts the user for a single line of input.

func (*Scanner) PromptMultiline

func (s *Scanner) PromptMultiline(prompt string, defaultValue []string) []string

PromptMultiline prompts the user for multiline input.

func (*Scanner) PromptYesNo

func (s *Scanner) PromptYesNo(prompt string, defaultValue bool) bool

PromptYesNo prompts the user for yes/no input.

Jump to

Keyboard shortcuts

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