flag

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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