helpers

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateEmission

func CalculateEmission(blockId uint64) uint64

func CalculatePercent

func CalculatePercent(part string, total string) string

func CheckErr

func CheckErr(err error)

func CheckErrBool

func CheckErrBool(ok bool)

func ConvertCapitalizationQNoahToNoah

func ConvertCapitalizationQNoahToNoah(value string) string

func Fee2Noah

func Fee2Noah(value uint64) string

func GetPrice added in v0.2.6

func GetPrice(valueStr string, priceStr string) *big.Float

func InArray

func InArray(needle interface{}, haystack interface{}) bool

func IsModelsContain

func IsModelsContain(value string, values []string) bool

func Nano2Seconds

func Nano2Seconds(nano uint64) float64

func NewFloat added in v0.2.6

func NewFloat(x float64, precision uint) *big.Float

func QNoahStr2Noah

func QNoahStr2Noah(value string) string

func RemoveNoahPrefix

func RemoveNoahPrefix(raw string) string

func Round

func Round(value float64, precision int) float64

func Seconds2Nano

func Seconds2Nano(sec int) float64

func StartOfTheDay

func StartOfTheDay(t time.Time) time.Time

func StringToBigInt

func StringToBigInt(string string) *big.Int

func Unit2Noah

func Unit2Noah(units float64) float64

Types

type ChannelData

type ChannelData struct {
	Value interface{}
	Error error
}

func NewChannelData

func NewChannelData(value interface{}, err error) ChannelData

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL