Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ContextKeyGenesisHash = contextKey("genesis/hash")
ContextKeyGenesisHash is the key to retrieve the Genesis document's hash value from a context.
Functions ¶
Types ¶
type PrettyPrinter ¶
type PrettyPrinter interface {
// PrettyPrint writes a pretty-printed representation of the type
// to the given writer.
PrettyPrint(ctx context.Context, prefix string, w io.Writer)
// PrettyType returns a representation of the type that can be used for pretty printing.
PrettyType() (interface{}, error)
}
PrettyPrinter is an interface for types that know how to pretty print themselves (e.g., to be displayed in a CLI).
Click to show internal directories.
Click to hide internal directories.