Versions in this module Expand all Collapse all v1 v1.0.2 Oct 19, 2022 Changes in this version + func GetChecksum(i interface{}, mode ModeChecksum) string + func GetFileChecksum(path string, m ModeChecksum) (string, error) + type ModeChecksum uint + const ModeChecksumMD5 + const ModeChecksumSHA256 v1.0.1 Oct 17, 2022 v1.0.0 Oct 15, 2022 Changes in this version + const ALPHABET + func CWD() string + func Compress(b []byte) []byte + func Copy(src, dest string) error + func Decompress(data []byte) []byte + func DeepCopy(dst, src interface{}) error + func EnsureDir(dir string) (err error) + func ExpandHomeDir(path string) string + func FileCheckMD5(fullpath string, checksum string) (ok bool) + func FileGetMD5(path string) (checksum string, err error) + func FileMove(src, dst string) error + func GetBytesChecksum(bs []byte, m string) string + func GetBytesMD5(bs []byte) string + func GetStringChecksum(str string, m string) string + func GetStringMD5(str string) string + func GzipToBase64(bs []byte) (b64 string, err error) + func HomeDir() string + func InterfaceExpand(msg []interface{}) string + func IsPortInUse(port int) bool + func LineBuilder(width int, char string) string + func LoadYaml(path string, i interface{}) error + func LocalIP() string + func MediaSorter(m map[int]interface{}) mapSorter + func PauseExit() + func RandString0f(len int) string + func RandStringFromAlphabet(length int, alphabet string) string + func RemoveDuplicateInt(a []int) []int + func RemoveElementInt(a []int, ele int) []int + func RsaGenKeypair() (priKey string, pubKey string) + func RsaGetPublicKey() string + func RsaLoadPrivateKey(path string) error + func RsaSavePrivateKey(priKey *rsa.PrivateKey, filepath string) error + func RsaSha256Sign(i interface{}) (signature, pubKey string, err error) + func RsaSha256SignHash(hash string) (signature, pubKey string, err error) + func RsaSha256Verify(i interface{}, signature, pubKey string) bool + func RsaSha256VerifyHash(hash, signature, pubKey string) bool + func SaveYaml(path string, i interface{}) error + func ScreenClear() + func StringsCompress(strs []string) (str string, err error) + func StringsDecompress(str string) (strs []string, err error) + func StringsDedup(slice []string) []string + func StringsDedupWithSort(a []string) (ret []string) + func StringsExcept(a []string, b []string) (ret []string) + type ClientPool struct + func NewClientPool(maxClients int) *ClientPool + func (p *ClientPool) GetClient() (client *http.Client) + func (p *ClientPool) Init(maxClients int) + func (p *ClientPool) Recycle(client *http.Client) + type ConnectData struct + Code int + Data interface{} + Message string + func HttpGet(url string) (data ConnectData, bs []byte, err error) + func HttpPost(url string, data interface{}, contentType string) (rdata ConnectData, bs []byte, err error) + type MapItem struct + Mid int + Value interface{}