Versions in this module Expand all Collapse all v0 v0.0.1 Dec 21, 2022 Changes in this version + var Client = &http.Client + func B2S(b []byte) string + func ChunkString(s string, chunkSize int) []string + func ComputeMd5AndLength(r io.Reader) ([]byte, int64) + func ConvertSubVersionToInt(str string) int32 + func HTTPGetReadCloser(url string, cookie string) (io.ReadCloser, error) + func HttpGetBytes(url, cookie string) ([]byte, error) + func HttpPostBytes(url string, data []byte) ([]byte, error) + func HttpPostBytesWithCookie(url string, data []byte, cookie string, contentType ...string) ([]byte, error) + func MultiReadSeeker(r ...io.ReadSeeker) io.ReadSeeker + func NewGzipReadCloser(reader io.ReadCloser) (io.ReadCloser, error) + func RandomString(len int) string + func RandomStringRange(length int, str string) string + func S2B(s string) (b []byte) + func Select(a, b []byte) []byte + func ToGroupCode(groupUin int64) int64 + func ToGroupUin(groupCode int64) int64 + func XmlEscape(s string) string + type Cache struct + func NewCache(interval time.Duration) *Cache[T] + func (cache *Cache[T]) Add(key string, value T, ttl time.Duration) + func (cache *Cache[T]) Get(key string) (value T, _ bool) + func (cache *Cache[T]) GetAndUpdate(key string, ttl time.Duration) (_ T, _ bool) + func (cache *Cache[_]) Count() int + func (cache *Cache[_]) GetKeys() []string + type ICMPPingResult struct + AvgTimeMill int64 + PacketsLoss int + PacketsSent int + func RunTCPPingLoop(ipport string, count int) (r ICMPPingResult) + type UploadWaiter struct + func NewUploadWaiter() *UploadWaiter + func (s *UploadWaiter) Done(key string) + func (s *UploadWaiter) Wait(key string)