Documentation
¶
Index ¶
- func ConvertUnmarshalledInt(x interface{}) (int64, error)
- func DirectoryExists(directoryPath string) bool
- func GetTerminationSignalCh() <-chan os.Signal
- func Max(a, b uint64) uint64
- func Min(a, b uint64) uint64
- func SetupDataDir(dataDir string, paths []string) error
- func ToFixedFloat(num float64, precision int) float64
- type JSONNumber
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertUnmarshalledInt ¶ added in v0.3.0
func DirectoryExists ¶
DirectoryExists checks if the directory at the specified path exists
func GetTerminationSignalCh ¶
GetTerminationSignalCh returns a channel to emit signals by ctrl + c
func SetupDataDir ¶
SetupDataDir sets up the data directory and the corresponding sub-directories
func ToFixedFloat ¶
Types ¶
type JSONNumber ¶ added in v0.3.0
type JSONNumber struct {
Value uint64
}
JSONNumber is the number represented in decimal or hex in json
func (*JSONNumber) MarshalJSON ¶ added in v0.3.0
func (d *JSONNumber) MarshalJSON() ([]byte, error)
func (*JSONNumber) UnmarshalJSON ¶ added in v0.3.0
func (d *JSONNumber) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.