Documentation
¶
Index ¶
- func DecodeDecimal(d string) decimal.Decimal
- func DecodeDecimalPtr(d string) (dd *decimal.Decimal)
- func DivRav(data int64) decimal.Decimal
- func Fix0x(input string) string
- func FormatTimestamp(timestamp int64) string
- func Has0xPrefix(input string) bool
- func HexToAddress(hexStr string) string
- func HexToDecimal(hexStr string) *big.Int
- func HexToDecimalInt(hexStr string) int
- func IsAddress(address string) bool
- func IsHashHex(s string) bool
- func IsHex(str string) bool
- func IsHexAddress(s string) bool
- func IsHexSting(str string) bool
- func IsNumber(s string) bool
- func Substring(input string, start, end int) (str string)
- func SubstringFromIndex(input string, index int) string
- func TruncateString(s string, length int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeDecimal ¶
func DecodeDecimalPtr ¶
func FormatTimestamp ¶
func Has0xPrefix ¶
func HexToAddress ¶
func HexToDecimal ¶
func HexToDecimalInt ¶
func IsHexAddress ¶
IsHexAddress verifies whether a string can represent a valid hex-encoded Ethereum address or not.
func IsHexSting ¶
IsHexSting validates whether each byte is valid hexadecimal string.
func SubstringFromIndex ¶
func TruncateString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.