Documentation ¶
Index ¶
- Variables
- func AppendSliceValue(sliceVal model.Value, val model.Value) (ret model.Value, err *cd.Result)
- func DecodeValue(eVal model.RawVal, tType model.Type, mCache model.Cache) (ret model.Value, err *cd.Result)
- func ElemDependValue(eVal model.RawVal) (ret []model.Value, err *cd.Result)
- func EncodeValue(tVal model.Value, tType model.Type, mCache model.Cache) (ret model.RawVal, err *cd.Result)
- func GetEntityModel(entity interface{}) (ret model.Model, err *cd.Result)
- func GetEntityType(entity interface{}) (ret model.Type, err *cd.Result)
- func GetEntityValue(entity interface{}) (ret model.Value, err *cd.Result)
- func GetModelFilter(vModel model.Model) (ret model.Filter, err *cd.Result)
- func GetNewValue(valueDeclare model.ValueDeclare) (ret model.Value)
- func GetType(vType reflect.Type) (ret model.Type, err *cd.Result)
- func SetModelValue(vModel model.Model, vVal model.Value) (ret model.Model, err *cd.Result)
- type SpecImpl
- type TypeImpl
- func (s *TypeImpl) Elem() model.Type
- func (s *TypeImpl) GetDescription() string
- func (s *TypeImpl) GetName() string
- func (s *TypeImpl) GetPkgKey() string
- func (s *TypeImpl) GetPkgPath() string
- func (s *TypeImpl) GetValue() (ret model.TypeDeclare)
- func (s *TypeImpl) Interface(initVal any) (ret model.Value, err *cd.Result)
- func (s *TypeImpl) IsBasic() bool
- func (s *TypeImpl) IsPtrType() bool
- func (s *TypeImpl) IsSlice() bool
- func (s *TypeImpl) IsStruct() bool
- type ValueImpl
- func (s *ValueImpl) Addr() model.Value
- func (s *ValueImpl) Copy() (ret *ValueImpl)
- func (s *ValueImpl) Get() any
- func (s *ValueImpl) Interface() model.RawVal
- func (s *ValueImpl) IsBasic() bool
- func (s *ValueImpl) IsValid() (ret bool)
- func (s *ValueImpl) IsZero() (ret bool)
- func (s *ValueImpl) Set(val any)
Constants ¶
This section is empty.
Variables ¶
View Source
var NilValue = ValueImpl{}
Functions ¶
func AppendSliceValue ¶
func DecodeValue ¶
func EncodeValue ¶
func GetModelFilter ¶ added in v1.3.4
func GetNewValue ¶ added in v1.3.147
func GetNewValue(valueDeclare model.ValueDeclare) (ret model.Value)
Types ¶
type SpecImpl ¶ added in v1.3.28
type SpecImpl struct {
// contains filtered or unexported fields
}
func (*SpecImpl) EnableView ¶ added in v1.3.90
func (s *SpecImpl) EnableView(viewSpec model.ViewDeclare) bool
func (*SpecImpl) GetDefaultValue ¶ added in v1.3.156
func (*SpecImpl) GetFieldName ¶ added in v1.3.28
GetFieldName Name
func (*SpecImpl) GetValueDeclare ¶ added in v1.3.28
func (s *SpecImpl) GetValueDeclare() model.ValueDeclare
func (*SpecImpl) IsPrimaryKey ¶ added in v1.3.28
type TypeImpl ¶ added in v1.3.28
type TypeImpl struct {
// contains filtered or unexported fields
}
func (*TypeImpl) GetDescription ¶ added in v1.3.28
func (*TypeImpl) GetPkgPath ¶ added in v1.3.28
func (*TypeImpl) GetValue ¶ added in v1.3.28
func (s *TypeImpl) GetValue() (ret model.TypeDeclare)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.