Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UnitETH = "ETH" UnitWEI = "WEI" // UnitList is array for Unit string // UnitList = []string{"Wei", "Ada", "Babbage", "Shannon", "Szabo", "Finney", "Ether", "Einstein", "Douglas", "Gwei"} UnitList []string // UnitString is for Unit string // UnitString = "Available unit: Wei, Ada, Babbage, Shannon, Szabo, Finney, Ether, Einstein, Douglas, Gwei" UnitString string )
View Source
var IsDecimalString = regexp.MustCompile(`^[1-9]\d*$|^0$|^0\.\d*$|^[1-9](\d)*\.(\d)*$`).MatchString
Functions ¶
func InitUnit ¶
func InitUnit(bc BlockChain)
Types ¶
type BlockChain ¶
type BlockChain int
const ( UnknownChain BlockChain = iota NewChain Ethereum )
func (BlockChain) Init ¶
func (bc BlockChain) Init()
func (BlockChain) String ¶
func (bc BlockChain) String() string
type CLI ¶
type CLI struct {
// contains filtered or unexported fields
}
CLI represents a command-line interface. This class is not threadsafe.
func (*CLI) Embeddable ¶
Embeddable returns a CLI that you can embed into your own Go programs. This is not thread-safe.
func (*CLI) TestCommand ¶
TestCommand test command
Click to show internal directories.
Click to hide internal directories.