Documentation
¶
Index ¶
- func AToInt(arr []interface{}) []int
- func AToInt64(arr []interface{}) []int64
- func Defined(data interface{}, field string) bool
- func Dict(values ...interface{}) (map[string]interface{}, error)
- func IsMap(o interface{}) bool
- func IsNil(o interface{}) bool
- func IsSlice(o interface{}) bool
- func ParseTag(tag string) (string, tagOptions)
- func Recover(cleanups ...func())
- func RemoveDuplicateElement[T EleType](values []T) []T
- func StructFields(value reflect.Value, tagName string) []reflect.StructField
- func StructVal(s interface{}) reflect.Value
- func ToFloat64(value interface{}) float64
- func ToFloat64V2(reflectValue reflect.Value) float64
- func ToInt64(value interface{}) int64
- func ToInt64V2(reflectValue reflect.Value) int64
- func ToUInt64(value interface{}) uint64
- func ToUInt64V2(reflectValue reflect.Value) uint64
- type EleType
- type IntegerType
- type RecoverFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsSlice ¶ added in v1.0.54
func IsSlice(o interface{}) bool
IsSlice checks if some variable is a slice
func RemoveDuplicateElement ¶ added in v1.0.53
func RemoveDuplicateElement[T EleType](values []T) []T
func StructFields ¶ added in v1.1.36
func StructFields(value reflect.Value, tagName string) []reflect.StructField
func ToFloat64V2 ¶ added in v1.1.36
func ToUInt64V2 ¶ added in v1.1.36
Types ¶
type IntegerType ¶ added in v1.3.40
type RecoverFunc ¶ added in v1.1.21
type RecoverFunc func(r any)
var DefRecoverFunc RecoverFunc = func(r any) {
}
Click to show internal directories.
Click to hide internal directories.