Versions in this module Expand all Collapse all v1 v1.0.1 Sep 22, 2023 v1.0.0 Jul 26, 2023 Changes in this version + var DEFAULT_PID_FILE = "log/PID" + func AESDecrypt(cipherkey, ciphertext []byte) ([]byte, error) + func AESEncrypt(cipherkey, src []byte) []byte + func BytesToString(b []byte) string + func CamelString(s string) string + func ExtranetIP() (ip string, err error) + func FileExists(name string) bool + func GetCallLine(calldepth int) string + func GetFirstGopath(allowAutomaticGuessing bool) (goPath string, err error) + func GrepFile(patten string, filename string) (lines []string, err error) + func IntranetIP() (string, error) + func IsExportedName(name string) bool + func IsExportedOrBuiltinType(t reflect.Type) bool + func JsQueryEscape(s string) string + func JsQueryUnescape(s string) (string, error) + func Md5(b []byte) string + func ObjectName(obj interface{}) string + func PanicTrace(kb int) []byte + func RandomBytes(n int) []byte + func RelPath(targpath string) string + func RemoveAllFromInt32s(set []int32, a int32) []int32 + func RemoveAllFromInt64s(set []int64, a int64) []int64 + func RemoveAllFromInterfaces(set []interface{}, a interface{}) []interface + func RemoveAllFromInts(set []int, a int) []int + func RemoveAllFromStrings(set []string, a string) []string + func RemoveFromInt32s(set []int32, a int32) []int32 + func RemoveFromInt64s(set []int64, a int64) []int64 + func RemoveFromInterfaces(set []interface{}, a interface{}) []interface + func RemoveFromInts(set []int, a int) []int + func RemoveFromStrings(set []string, a string) []string + func SearchFile(filename string, paths ...string) (fullpath string, err error) + func SelfChdir() + func SelfDir() string + func SelfPath() string + func SetToInt32s(set []int32, a int32) []int32 + func SetToInt64s(set []int64, a int64) []int64 + func SetToInterfaces(set []interface{}, a interface{}) []interface + func SetToInts(set []int, a int) []int + func SetToStrings(set []string, a string) []string + func SnakeString(s string) string + func SpaceInOne(s string) string + func StringToBytes(s string) []byte + func TarGz(src, dst string, includePrefix bool, logOutput func(string, ...interface{}), ...) (err error) + func TarGzTo(src string, dstWriter io.Writer, includePrefix bool, ...) (err error) + func URLRandomString(n int) string + func WalkDirs(targpath string, suffixes ...string) (dirlist []string) + func WritePidFile(pidFile ...string) + type Map interface + Clear func() + Delete func(key interface{}) + Len func() int + Load func(key interface{}) (value interface{}, ok bool) + LoadOrStore func(key, value interface{}) (actual interface{}, loaded bool) + Random func() (key, value interface{}, exist bool) + Range func(f func(key, value interface{}) bool) + Store func(key, value interface{}) + func AtomicMap() Map + func RwMap(capacity ...int) Map + type Random struct + func NewRandom(alphabet string) *Random + func (r *Random) RandomString(n int) string