Documentation ¶
Index ¶
- Variables
- func ByteCountDecimal(b int64) string
- func GenRandStr(n int, join string) string
- func GetAbsolutePaths(paths []string) []string
- func GetInput(prompt string) string
- func GetLocalIPs() (ips []string, err error)
- func HashFile(fileName string, algorithm string) (hash256 []byte, err error)
- func IMOHashFile(fileName string) (hash []byte, err error)
- func IMOHashFileFull(fileName string) (hash []byte, err error)
- func IsBlank(s string) bool
- func IsDir(path string) bool
- func IsEmpty(s string) bool
- func IsEmptyFolder(folderPath string) (bool, error)
- func IsFile(path string) bool
- func LocalIP() string
- func MD5HashFile(fileName string) (hash256 []byte, err error)
- func Print(c color, v any)
- func Println(c color, v any)
- func SHA256(s string) string
- func UnzipDirectory(destination string, source string) error
- func XXHashFile(fileName string) (hash256 []byte, err error)
- func ZipDirectory(destination string, source string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Black color White color Red color Blue color Green color Yellow color Purple color )
Functions ¶
func ByteCountDecimal ¶
func GenRandStr ¶
func GetAbsolutePaths ¶
func IMOHashFile ¶
IMOHashFile returns imohash
func IMOHashFileFull ¶
IMOHashFileFull returns imohash of full file
func IsEmptyFolder ¶
func MD5HashFile ¶
MD5HashFile returns MD5 hash
func UnzipDirectory ¶
func XXHashFile ¶
XXHashFile returns the xxhash of a file
func ZipDirectory ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.