keyio

package
v0.0.0-...-6904822 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoFile = errors.New("input file not provided")

Functions

func ReadFile

func ReadFile(source string, fallback bool) ([]byte, error)

ReadFile reads bytes from file. fall back to stdin if fallback is set.

func ReadKey

func ReadKey(key core.EllipticKey, filename string, hexKey string, stdin bool) error

ReadKey sets key from hexKey if set, otherwise read from filename. If filename is empty string. Fallback to standard input if stdin is true.

func ReadPassword

func ReadPassword() (string, error)

ReadPassword reads a line of input from the terminal without local echo and returns the input string.

func WriteString

func WriteString(data string, filename string, stdout bool) error

WriteString writes given string to file. Fallback to standard output if stdout is set.

Types

This section is empty.

Jump to

Keyboard shortcuts

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