stdio

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package stdio implements standard input/output functions.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Reader is the default standard input Reader.
	Reader = bufio.NewReader(os.Stdin)

	// Writer is the default standard output Writer.
	Writer = bufio.NewWriter(os.Stdout)
)

Functions

func Prompt

func Prompt(s string) string

Prompt writes a prompt and returns a string of user input.

func Read

func Read() string

Read returns a string of user input.

func Write

func Write(s string, v ...any)

Write writes a formatted string of user output.

Types

This section is empty.

Jump to

Keyboard shortcuts

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