Versions in this module Expand all Collapse all v1 v1.0.1 Nov 23, 2023 Changes in this version + func IndexOfToInt(list []int, target int) int + func IndexOfToString(list []string, target string) int + func IndexOfToUint(list []uint, target uint) int + func ListFiltter(slice interface{}, function func(interface{}) bool) interface + func ListFindIndex(src interface{}, function func(i interface{}) bool) int + func MD5Encode(val string) string + func MD5Verify(sourceVal, encryptVal string) bool + func PathResolve(url ...string) string + func Recursion(function func() int) error + func StrToCamel(s string) string + func StrToColonBase(s string) string + func StrToHash(s string) string + func StrToKebab(s string) string + func StrToLowerCamel(s string) string + func StrToSnake(s string) string + func StrToSnakeIgnore(s, ignore string) string + func StructCopy(src, dst interface{}) error + func StructFilter(src interface{}, ignores []string) (interface{}, error) + func StructGetField(src interface{}, key string) (interface{}, error) + func StructToMap(src interface{}, filterZero bool, isSnake bool) (map[string]interface{}, error) + func ToBevelColon(s string, ignore []string) string + func ToCamelInitCase(s string, initCase bool) string + func ToScreamingDelimited(s string, delimiter uint8, ignore string, screaming bool) string + func TokenCreate(tokenData *JwtSchema, ttl time.Duration, tags ...string) string + func TokenParse(tokenString string) (jwt.MapClaims, error) + type JwtSchema struct + IsSuper bool + UserId uint + UserRole uint + Username string + type StructListDiffResult struct + Add []interface{} + Del []interface{} + Mod []interface{} + ModToId []interface{} + Same []interface{} + func ListToDiff(src interface{}, dst interface{}, compareKeys []string, only string) (StructListDiffResult, error)