Documentation
¶
Index ¶
- 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 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 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 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.