flag

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TransactionHash

type TransactionHash struct {
	Hash *common.Hash
}

TransactionHash can be used as a cli.Flag.Value that captures a transaction hash from a command-line flag.

func (*TransactionHash) Set

func (tg *TransactionHash) Set(value string) error

Set sets the transaction hash flag's value from the given string.

func (*TransactionHash) String

func (tg *TransactionHash) String() string

String returns a string representation of the transaction hash flag.

type Uint256

type Uint256 struct {
	Uint *big.Int
}

Uint256 can be used as a cli.Flag.Value that captures a 256-bit big.Int value from a command-line flag.

func (*Uint256) Set

func (u256 *Uint256) Set(s string) error

Set sets the Uint256 flag's value from the given string.

func (*Uint256) String

func (u256 *Uint256) String() string

String returns a string representation of the Uint256 flag as hex.

Jump to

Keyboard shortcuts

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