Documentation ¶
Index ¶
- Constants
- func CreateUsageCommand(use, short string, version ...string) *cobra.Command
- func DisplayValueWithUnit(drip *big.Int, tokenSymbol ...string) string
- func GetStringVal(strPtr *string) string
- func MustParseBigInt(value string, exp int32) *big.Int
- func OsExit(format string, a ...interface{})
- func OsExitIfErr(err error, format string, a ...interface{})
- func Panic(format string, a ...interface{})
- func PanicIfErr(err error, format string, a ...interface{})
- func WaitSigAndPrintDot() chan interface{}
Constants ¶
View Source
const ( MAINNET = 1029 TESTNET = 1 ESPACE_MAINNET = 1030 ESPACE_TESTNET = 71 )
Variables ¶
This section is empty.
Functions ¶
func CreateUsageCommand ¶
CreateUsageCommand creates a command to display help.
func DisplayValueWithUnit ¶
DisplayValueWithUnit returns the display format for given drip value.
func GetStringVal ¶ added in v1.0.4
func MustParseBigInt ¶ added in v1.0.1
MustParseBigInt parses the specified value to number and returns value * 10 ^ exp.
func OsExit ¶ added in v1.0.2
func OsExit(format string, a ...interface{})
OsExit prints msg and exit
func OsExitIfErr ¶ added in v1.0.2
OsExitIfErr prints error msg and exit
func PanicIfErr ¶ added in v1.0.4
func WaitSigAndPrintDot ¶ added in v1.0.4
func WaitSigAndPrintDot() chan interface{}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.