termutil

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadPassword

func ReadPassword(prompt string) (s []byte, err error)

ReadPassword reads a value from the terminal with no echo. The prompt is ephemeral.

func WriteFile added in v0.9.0

func WriteFile(name string, data []byte, perm os.FileMode) error

WriteFile writes data to the named file. If the file exists it will ask for confirmation before overwriting it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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