Documentation ¶
Index ¶
- func CalculateEmission(blockId uint64) uint64
- func CalculatePercent(part string, total string) string
- func CheckErr(err error)
- func CheckErrBool(ok bool)
- func ConvertCapitalizationQNoahToNoah(value string) string
- func Fee2Noah(value uint64) string
- func GetPrice(valueStr string, priceStr string) *big.Float
- func InArray(needle interface{}, haystack interface{}) bool
- func IsModelsContain(value string, values []string) bool
- func Nano2Seconds(nano uint64) float64
- func NewFloat(x float64, precision uint) *big.Float
- func QNoahStr2Noah(value string) string
- func RemoveNoahPrefix(raw string) string
- func Round(value float64, precision int) float64
- func Seconds2Nano(sec int) float64
- func StartOfTheDay(t time.Time) time.Time
- func StringToBigInt(string string) *big.Int
- func Unit2Noah(units float64) float64
- type ChannelData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateEmission ¶
func CalculatePercent ¶
func CheckErrBool ¶
func CheckErrBool(ok bool)
func IsModelsContain ¶
func Nano2Seconds ¶
func QNoahStr2Noah ¶
func RemoveNoahPrefix ¶
func Seconds2Nano ¶
func StringToBigInt ¶
Types ¶
type ChannelData ¶
type ChannelData struct { Value interface{} Error error }
func NewChannelData ¶
func NewChannelData(value interface{}, err error) ChannelData
Click to show internal directories.
Click to hide internal directories.