Versions in this module Expand all Collapse all v1 v1.1.0 Jan 14, 2021 v1.0.2 Jan 14, 2021 Changes in this version + func ChineseLength(str string, limit int) int + func ChunkString(s string, chunkSize int) []string + 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 IsChanClosed(ch interface{}) bool + func RandomString(len int) string + func RandomStringRange(len int, str string) string + func ToGroupCode(groupUin int64) int64 + func ToGroupUin(groupCode int64) int64 + type Cache struct + func NewCache(interval time.Duration) *Cache + func (cache *Cache) Add(key string, value interface{}, ttl time.Duration) + func (cache *Cache) Count() int + func (cache *Cache) Get(key string) (interface{}, bool) + func (cache *Cache) GetKeys() []interface{}