fmtio

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Overview

package fmtio provides basic utilities to format input and output

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesFromStdin

func BytesFromStdin() ([]byte, error)

func HashFromHex added in v0.0.9

func HashFromHex(s string) (h merkle.Hash, err error)

func PublicKeyFromHex

func PublicKeyFromHex(s string) (pub types.PublicKey, err error)

func SignatureFromHex

func SignatureFromHex(s string) (sig types.Signature, err error)

func SignerFromHex

func SignerFromHex(s string) (crypto.Signer, error)

func StringFromStdin

func StringFromStdin() (string, error)

StringFromStdin reads bytes from stdin, parsing them as a string without leading and trailing white space

Types

This section is empty.

Jump to

Keyboard shortcuts

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