Versions in this module Expand all Collapse all v1 v1.2.6 Apr 8, 2021 v1.2.5 Apr 8, 2021 Changes in this version + var ErrMQEmpty = errors.New("MessageQueue is nil") + var ErrNumbers = errors.New("numbers < 0") + var ErrOffset = errors.New("offset < 0") + var ErrRequestTimeout = errors.New("request timeout") + var LocalIP string + func AbsInt(i int) int + func CheckError(action string, err error) + func ClientIP4() ([]byte, error) + func FakeIP() []byte + func FileReadAll(path string) ([]byte, error) + func GetAddressByBytes(data []byte) string + func HashString(s string) int + func MinInt(a, b int) int + func UnCompress(data []byte) []byte + func WriteToFile(path string, data []byte) error + type Set struct + func NewSet() Set + func (s *Set) Add(v UniqueItem) + func (s *Set) AddKV(k, v string) + func (s *Set) Contains(k string) (UniqueItem, bool) + func (s *Set) Len() int + func (s *Set) MarshalJSON() ([]byte, error) + func (s Set) UnmarshalJSON(data []byte) (err error) + type StringUnique string + func (str StringUnique) UniqueID() string + type UniqueItem interface + UniqueID func() string