Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Hasher = func(data ...[]byte) []byte { hasher := sha256.New() for i := 0; i < len(data); i++ { hasher.Write(data[i]) } return hasher.Sum(nil) }
Hasher exports default hash function for trie
Functions ¶
func HandleKillSig ¶
HandleKillSig gets killing signals (interrupt, quit and terminate) and calls a registered handler function for cleanup. Finally, this will exit program
func PathMkdirAll ¶
PathMkdirAll make a path by joining paths and create directory if not exists
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.