Documentation
¶
Index ¶
- Constants
- Variables
- func DictionaryAddMap(lstValue reflect.Value, item any)
- func DictionaryNew(lstType reflect.Type) reflect.Value
- func ExecuteMapperInit(targetVal reflect.Value)
- func GetAddMethod(lstValue reflect.Value) reflect.Value
- func GetDictionaryMapType(lstType reflect.Type) reflect.Type
- func GetDictionaryToMap(lstValue reflect.Value) reflect.Value
- func GetInParam(methodType reflect.Type) []reflect.Type
- func GetListItemArrayType(lstType reflect.Type) reflect.Type
- func GetListItemType(lstType reflect.Type) reflect.Type
- func GetListToArray(lstValue reflect.Value) []any
- func GetListToArrayValue(lstValue reflect.Value) reflect.Value
- func GetOutParam(methodType reflect.Type) []reflect.Type
- func GetPageList(pageList any) (any, int64)
- func GetRealType(val reflect.Value) reflect.Type
- func GetRealType2(val reflect.Type) reflect.Type
- func IsCollections(ty reflect.Type) bool
- func IsDataDomainSet(val reflect.Value) (reflect.Type, bool)
- func IsDataTableSet(val reflect.Value) (reflect.Type, bool)
- func IsDictionary(val reflect.Value) (reflect.Type, bool)
- func IsDictionaryByType(realType reflect.Type) bool
- func IsDtoModel(lst []reflect.Type) bool
- func IsDtoModelIgnoreInterface(lst []reflect.Type) bool
- func IsEsIndexSet(val reflect.Value) (reflect.Type, bool)
- func IsGoBasicType(ty reflect.Type) bool
- func IsList(val reflect.Value) (reflect.Type, bool)
- func IsListByType(realType reflect.Type) (reflect.Type, bool)
- func IsMap(val reflect.Value) (reflect.Type, bool)
- func IsNil(val reflect.Value) bool
- func IsPageList(val reflect.Value) (reflect.Type, bool)
- func IsPageListByType(realType reflect.Type) bool
- func IsSlice(val reflect.Value) (reflect.Type, bool)
- func IsStruct(ty reflect.Type) bool
- func ListAdd(lstValue reflect.Value, item any)
- func ListAddValue(lstValue reflect.Value, itemValue reflect.Value)
- func ListNew(lstType reflect.Type, cap int) reflect.Value
Constants ¶
const ( ListTypeString = "collections.List[" ListAnyTypeString = "collections.ListAny" DictionaryTypeString = "collections.Dictionary[" PageListTypeString = "collections.PageList[" CollectionsTypeString = "github.com/farseer-go/collections" CollectionsPrefixTypeString = "collections." DatetimeString = "dateTime.DateTime" TimeString = "time.Time" DecimalString = "decimal.Decimal" DomainSetString = "data.DomainSet[" TableSetString = "data.TableSet[" IndexSetString = "elasticSearch.IndexSet[" )
Variables ¶
var Cache = make(map[string][]int)
string key=自定义标识 value int=field or method对应的索引
Functions ¶
func DictionaryAddMap ¶ added in v0.13.0
DictionaryAddMap 动态添加元素
func DictionaryNew ¶ added in v0.13.0
DictionaryNew 动态创建一个新的Dictionary
func ExecuteMapperInit ¶ added in v0.15.0
ExecuteMapperInit 在集合中获取数据
func GetAddMethod ¶ added in v0.13.0
GetAddMethod 获取动态添加元素的Method
func GetDictionaryMapType ¶ added in v0.13.0
GetDictionaryMapType 获取Dictionary的原始数组类型
func GetDictionaryToMap ¶ added in v0.13.0
GetDictionaryToMap 获取Dictionary的map元素
func GetListItemArrayType ¶ added in v0.9.0
GetListItemArrayType 获取List的原始数组类型
func GetListItemType ¶ added in v0.9.0
GetListItemType 获取List的元素Type
func GetListToArray ¶ added in v0.13.0
GetListToArray 在集合中获取数据
func GetListToArrayValue ¶ added in v0.13.0
GetListToArrayValue 在集合中获取数据
func GetPageList ¶ added in v0.10.0
GetPageList 获取collections.PageList的元素
func IsDataDomainSet ¶ added in v0.8.0
IsDataDomainSet 判断类型是否为Data的DomainSet类型
func IsDataTableSet ¶
IsDataTableSet 判断类型是否为Data的TableSet类型
func IsDictionary ¶
IsDictionary 判断类型是否为Dictionary
func IsDictionaryByType ¶ added in v0.13.0
IsDictionaryByType 判断类型是否为Dictionary
func IsDtoModelIgnoreInterface ¶ added in v0.7.0
IsDtoModelIgnoreInterface 当第一个模型为struct,其它类型为interface时,判断为DTO
func IsEsIndexSet ¶
IsEsIndexSet 判断类型是否为ES的IndexSet类型
func IsGoBasicType ¶ added in v0.3.0
IsGoBasicType 是否为Go内置基础类型
func IsListByType ¶ added in v0.9.0
IsListByType 判断类型是否为List
func IsPageList ¶
IsPageList 判断类型是否为PageList
func IsPageListByType ¶ added in v0.13.0
IsPageListByType 判断类型是否为PageList
func ListAddValue ¶ added in v0.13.0
ListAddValue 动态添加元素
Types ¶
This section is empty.