Documentation
¶
Index ¶
- func ContainDiffField[T comparable](dst []T, src any, dstField, srcField string) bool
- func ContainField[T comparable](dst []T, src any, fieldName string) bool
- func Contains[T comparable](s []T, sep ...T) bool
- func Equal(src, dst any) bool
- func EqualJson(src, dst any) bool
- func Float64(value float64, size int) float64
- func GetCn(str string) (cn string)
- func GetCnByRegexp(str string) (cn string)
- func HumpToLine(str string) string
- func LineToHump(str string) string
- func Md5(b []byte) string
- func Remove[T comparable](s []T, sep ...T) (res []T)
- func RemoveDuplicate[T comparable](s []T) []T
- func RemoveIndex[T comparable](s []T, i *int)
- func Sha256(b []byte) string
- type Aes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainDiffField ¶ added in v1.2.5
func ContainDiffField[T comparable](dst []T, src any, dstField, srcField string) bool
func ContainField ¶ added in v1.2.2
func ContainField[T comparable](dst []T, src any, fieldName string) bool
func Contains ¶
func Contains[T comparable](s []T, sep ...T) bool
func GetCn ¶ added in v1.2.3
GetCn get cn string unicode chinese range 4e00-9fa5,16 to 10: 19968 - 40869
func GetCnByRegexp ¶ added in v1.2.3
func Remove ¶
func Remove[T comparable](s []T, sep ...T) (res []T)
func RemoveDuplicate ¶
func RemoveDuplicate[T comparable](s []T) []T
RemoveDuplicate remove duplicated slice or pointer slice
func RemoveIndex ¶ added in v1.2.3
func RemoveIndex[T comparable](s []T, i *int)
Types ¶
Click to show internal directories.
Click to hide internal directories.