Documentation ¶
Index ¶
- func ArrayToInt(arr []interface{}) []int
- 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 StrctVal(s interface{}) reflect.Value
- func StructFields(value reflect.Value, tagName string) []reflect.StructField
- func ToFloat64(value interface{}) float64
- func ToFloat64V2(reflectValue reflect.Value) float64
- func ToInt64(value interface{}) int64
- func ToInt64V2(reflectValue reflect.Value) int64
- func ToString(value interface{}) string
- func ToStringV2(reflectValue reflect.Value) string
- func ToUInt64(value interface{}) uint64
- func ToUInt64V2(reflectValue reflect.Value) uint64
- type EleType
- type RecoverFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayToInt ¶ added in v1.1.36
func ArrayToInt(arr []interface{}) []int
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 ToStringV2 ¶ added in v1.1.36
func ToUInt64V2 ¶ added in v1.1.36
Types ¶
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.