Documentation ¶
Index ¶
- func BuildMerkleTree(data [][]byte, hashFn hasher) error
- func CheckFileExist(link string) ([]string, error)
- func Compress(src []byte) ([]byte, error)
- func DecodeBase32(data string) ([]byte, error)
- func Decompress(src []byte) ([]byte, error)
- func EncodeBase32(data []byte) string
- func GetCPUInfo() error
- func GetMemInfo() error
- func GetOSInfo() error
- func Hash256(data []byte) [32]byte
- func Hash512(data []byte) [64]byte
- func IndexOfString(element string, data []string) int
- func IntArrayToStr(ns []int) string
- func IsNumber(str string) bool
- func IsValidEmail(str string) bool
- func IsValidNameString(str string) bool
- func Must(err error)
- func RandomUUIDGenBytes() []byte
- func RandomUUIDGenString() string
- func ReadFileFromSource(source string) ([]byte, error)
- func ReadFileZip(rc io.Reader) ([]byte, error)
- func ScanFolder(link string) ([]string, error)
- func Unzip(src string, dest string) ([]string, error)
- func WriteFiletoDisk(filename string, fileDir string, fileData []byte, fmode os.FileMode) error
- type SysInfo
- type VirtualSpace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildMerkleTree ¶
func CheckFileExist ¶
func DecodeBase32 ¶
func Decompress ¶
func EncodeBase32 ¶
func GetCPUInfo ¶
func GetCPUInfo() error
func GetMemInfo ¶
func GetMemInfo() error
func IndexOfString ¶
func IntArrayToStr ¶
func IsValidEmail ¶
func IsValidNameString ¶
func RandomUUIDGenBytes ¶
func RandomUUIDGenBytes() []byte
func RandomUUIDGenString ¶
func RandomUUIDGenString() string
func ReadFileFromSource ¶
func ScanFolder ¶
Types ¶
type VirtualSpace ¶
func GetDiskSpace ¶
func GetDiskSpace() (VirtualSpace, error)
Click to show internal directories.
Click to hide internal directories.