Versions in this module Expand all Collapse all v2 v2.1.2 Sep 9, 2022 v2.1.1 Sep 9, 2022 Changes in this version + var LocalIP string + func AbsInt(i int) int + func CheckError(action string, err error) + func ClientIP4() ([]byte, error) + func Compress(raw []byte, compressLevel int) ([]byte, error) + func FakeIP() []byte + func FileReadAll(path string) ([]byte, error) + func GetAddressByBytes(data []byte) string + func HashString(s string) int + func IsEmpty(s string) bool + func MinInt(a, b int) int + func UnCompress(data []byte) []byte + func WithoutNamespace(resource string) string + func WrapNamespace(namespace, resourceWithOutNamespace string) string + 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