Documentation ¶
Index ¶
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChineseLength ¶
func ChunkString ¶
func HttpGetBytes ¶
func HttpPostBytesWithCookie ¶
func IsChanClosed ¶
func IsChanClosed(ch interface{}) bool
func RandomString ¶
func RandomStringRange ¶
func ToGroupCode ¶
func ToGroupUin ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache - simple implementation of cache More information: https://en.wikipedia.org/wiki/Time_to_live
func NewCache ¶
NewCache - initialization of new cache. For avoid mistake - minimal time to live is 1 minute. For simplification, - key is string and cache haven`t stop method
Click to show internal directories.
Click to hide internal directories.