github.com/wfusion/gofusion@v1.1.14/common/constant/reflect_type.go (about)

     1  package constant
     2  
     3  import (
     4  	"context"
     5  	"reflect"
     6  
     7  	"github.com/gin-gonic/gin"
     8  )
     9  
    10  var (
    11  	ErrorType             = reflect.TypeOf((*error)(nil)).Elem()
    12  	ContextType           = reflect.TypeOf((*context.Context)(nil)).Elem()
    13  	GinContextType        = reflect.TypeOf((*gin.Context)(nil))
    14  	AnyType               = reflect.TypeOf((*any)(nil)).Elem()
    15  	AnySliceType          = reflect.TypeOf(([]any)(nil))
    16  	MapStringAnySliceType = reflect.TypeOf(([]map[string]any)(nil))
    17  	IntType               = reflect.TypeOf(int(0))
    18  	IntSliceType          = reflect.TypeOf([]int(nil))
    19  	UintType              = reflect.TypeOf(uint(0))
    20  	UintSliceType         = reflect.TypeOf([]uint(nil))
    21  	StringType            = reflect.TypeOf(string(""))
    22  	StringSliceType       = reflect.TypeOf([]string(nil))
    23  	Float32Type           = reflect.TypeOf(float32(0))
    24  	Float64Type           = reflect.TypeOf(float64(0))
    25  	BoolType              = reflect.TypeOf(bool(false))
    26  )