Help us shape the future of Go! Take the 2026 Go Developer Survey

prompt

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package prompt reads secrets and confirmations from the terminal.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Password

func Password(label string) (string, error)

Password reads a password without echoing it, returning an error when there is no terminal to read from. The prompt goes to stderr so it cannot be mistaken for program output, which keeps `ohmyssh exec` safe to pipe.

Types

This section is empty.

Jump to

Keyboard shortcuts

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