Versions in this module Expand all Collapse all v1 v1.2.1 Oct 25, 2023 Changes in this version + func BytesToString(b []byte) string + func ConcatString(s ...string) string + func FileExists(path string) bool + func GenShortID() (string, error) + func GetBytes(key interface{}) ([]byte, error) + func GetDate() string + func GetHostname() string + func GetInternalIP() string + func GetLocalIP() string + func GetShowTime(ts time.Time) string + func GetTodayDateInt() int + func IsEmpty(s string) bool + func IsInSlice(value interface{}, sli interface{}) bool + func IsZero(i ...interface{}) bool + func JoinInt(is []int64) string + func Md5(str string) (string, error) + func RandomStr(n int) string + func RegexpReplace(reg, src, temp string) string + func RemoveDuplicateElement(slice []string) []string + func SliceShuffle(slice []interface{}) + func SplitInt(s string) ([]int64, error) + func StrInArray(str string, strArr []string) bool + func StringSliceContains(ss []string, s string) bool + func StringSliceEqual(a, b []string) bool + func StringSliceReflectEqual(a, b []string) bool + func StringToBytes(s string) []byte + func StringToInt(str string) (int, error) + func StringToInt64(str string) (int64, error) + func StringToUint64(str string) (uint64, error) + func TimeLayout() string + func TimeToShortString(ts time.Time) string + func TimeToString(ts time.Time) string + func Uint64DeleteElemInSlice(i int, s []uint64) []uint64 + func Uint64DeleteElemInSliceWithOrder(i int, s []uint64) []uint64 + func Uint64ShuffleSlice(a []uint64) []uint64 + func Uint64SliceReverse(a []uint64) []uint64 + type Pagination struct + PageSize int + Request *http.Request + Total int + func NewPagination(req *http.Request, total int, pageSize int) *Pagination + func (p *Pagination) Pages() string