util

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(err error, out io.Writer, msg string, args ...interface{}) bool

func LoadSSZ

func LoadSSZ(path string, dst interface{}, ssz types.SSZ) error

func LoadSSZInput added in v0.0.2

func LoadSSZInput(r io.Reader, dst interface{}, ssz types.SSZ) error

func LoadSSZInputPath

func LoadSSZInputPath(cmd *cobra.Command, inPath string, stdInFallback bool, dst interface{}, ssz types.SSZ) error

func LoadStateInput

func LoadStateInput(r io.Reader) (*beacon.BeaconState, error)

func LoadStateInputPath

func LoadStateInputPath(cmd *cobra.Command, inPath string, stdInFallback bool) (*beacon.BeaconState, error)

func LoadStateViewInputFlag added in v0.0.29

func LoadStateViewInputFlag(cmd *cobra.Command, inputKey string, stdInFallback bool) (*beacon.BeaconStateView, error)

func LoadStateViewInputPath added in v0.0.29

func LoadStateViewInputPath(cmd *cobra.Command, inPath string, stdInFallback bool) (*beacon.BeaconStateView, error)

func Report

func Report(out io.Writer, msg string, args ...interface{})

func WriteStateOutputFile added in v0.0.20

func WriteStateOutputFile(cmd *cobra.Command, outPath string, state *beacon.BeaconState) (err error)

func WriteStateViewOutput added in v0.0.29

func WriteStateViewOutput(cmd *cobra.Command, outKey string, state *beacon.BeaconStateView) error

func WriteStateViewOutputFile added in v0.0.29

func WriteStateViewOutputFile(cmd *cobra.Command, outPath string, state *beacon.BeaconStateView) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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