Documentation
¶
Index ¶
- type Array
- type BitSize
- type Boolean
- type Complex
- type Exportable
- type Field
- type Float
- type Function
- type Instantiable
- type Integer
- type Interface
- type Invokable
- type Map
- type Member
- type Method
- type Number
- type NumberType
- type Slice
- type String
- type Struct
- type Tag
- type Taggable
- type Type
- type TypeConverter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Complex ¶
type Complex interface {
Number
GetImaginaryData(val interface{}) interface{}
GetRealData(val interface{}) interface{}
}
type Exportable ¶
type Exportable interface {
IsExported() bool
}
type Instantiable ¶
type Instantiable interface {
NewInstance() interface{}
}
type Invokable ¶
type Invokable interface {
Invoke(obj interface{}, args ...interface{}) []interface{}
}
type Member ¶
type Member interface {
Exportable
GetName() string
String() string
}
type Number ¶
type Number interface {
Type
Instantiable
GetType() NumberType
GetBitSize() BitSize
Overflow(val interface{}) bool
ToString(val interface{}) string
}
type Slice ¶
type Slice interface {
Type
Instantiable
GetElementType() Type
}
type String ¶
type String interface {
Type
Instantiable
ToNumber(val string, number Number) (interface{}, error)
ToInt(val string) int
ToInt8(val string) int8
ToInt16(val string) int16
ToInt32(val string) int32
ToInt64(val string) int64
ToUint(val string) uint
ToUint8(val string) uint8
ToUint16(val string) uint16
ToUint32(val string) uint32
ToUint64(val string) uint64
ToFloat32(val string) float32
ToFloat64(val string) float64
}
type Struct ¶
type Struct interface {
Type
Instantiable
GetFields() []Field
GetFieldCount() int
GetExportedFields() []Field
GetExportedFieldCount() int
GetUnexportedFields() []Field
GetUnexportedFieldCount() int
GetAnonymousFields() []Field
GetAnonymousFieldCount() int
GetStructMethods() []Method
GetStructMethodCount() int
Implements(i Interface) bool
EmbeddedStruct(candidate Struct) bool
}
type Type ¶
type Type interface {
TypeConverter
GetName() string
GetFullName() string
GetPackageName() string
GetPackageFullName() string
GetGoPointerType() reflect.Type
GetGoPointerValue() reflect.Value
GetGoType() reflect.Type
GetGoValue() reflect.Value
IsPointer() bool
IsInstantiable() bool
String() string
Equals(anotherType Type) bool
}
type TypeConverter ¶
type TypeConverter interface {
IsBoolean() bool
IsNumber() bool
IsFunction() bool
IsStruct() bool
IsInterface() bool
IsString() bool
IsMap() bool
IsArray() bool
IsSlice() bool
ToBooleanType() Boolean
ToNumberType() Number
ToFunctionType() Function
ToStructType() Struct
ToInterfaceType() Interface
ToStringType() String
ToMapType() Map
ToArrayType() Array
ToSliceType() Slice
}
Click to show internal directories.
Click to hide internal directories.
