Documentation
¶
Index ¶
- func IsArray(typ Type) bool
- func IsBasic(typ Type) bool
- func IsBoolean(typ Type) bool
- func IsChan(typ Type) bool
- func IsComplex(typ Type) bool
- func IsCustom(typ Type) bool
- func IsFloat(typ Type) bool
- func IsFunction(typ Type) bool
- func IsInteger(typ Type) bool
- func IsInterface(typ Type) bool
- func IsMap(typ Type) bool
- func IsNumber(typ Type) bool
- func IsPointer(typ Type) bool
- func IsSignedInteger(typ Type) bool
- func IsSlice(typ Type) bool
- func IsString(typ Type) bool
- func IsStruct(typ Type) bool
- func IsUnsignedInteger(typ Type) bool
- type Array
- type BitSize
- type Boolean
- type Chan
- type ChanDirection
- type Complex
- type Custom
- type Entry
- type Field
- type Float
- type Function
- type Interface
- type Map
- type Method
- type Pointer
- type SignedInteger
- type Slice
- type String
- type Struct
- type Tag
- type Tags
- type Type
- type UnsignedInteger
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsFunction ¶
func IsInterface ¶
func IsSignedInteger ¶
func IsUnsignedInteger ¶
Types ¶
type Array ¶
type Chan ¶
type ChanDirection ¶
type ChanDirection int
const ( RECEIVE ChanDirection = 1 << iota // <-chan SEND // chan<- BOTH = RECEIVE | SEND // chan )
type Complex ¶
type Custom ¶
type Float ¶
type Function ¶
type Function interface {
Type
IsExported() bool
Parameters() []Type
NumParameter() int
Results() []Type
NumResult() int
IsVariadic() bool
Invoke(args ...any) ([]any, error)
}
func ToFunction ¶
type Interface ¶
func ToInterface ¶
type Map ¶
type SignedInteger ¶
type SignedInteger interface {
Type
BitSize() BitSize
IntegerValue() (int64, error)
SetIntegerValue(v int64) error
Overflow(v int64) bool
}
func ToSignedInteger ¶
func ToSignedInteger(typ Type) SignedInteger
type Slice ¶
type Struct ¶
type Type ¶
type Type interface {
Name() string
PackageName() string
PackagePath() string
CanSet() bool
HasValue() bool
Value() (any, error)
SetValue(val any) error
Parent() Type
ReflectType() reflect.Type
ReflectValue() *reflect.Value
Compare(another Type) bool
IsInstantiable() bool
Instantiate() (Value, error)
CanConvert(another Type) bool
Convert(another Type) (Value, error)
}
type UnsignedInteger ¶
type UnsignedInteger interface {
Type
BitSize() BitSize
IntegerValue() (uint64, error)
SetIntegerValue(v uint64) error
Overflow(v uint64) bool
}
func ToUnsignedInteger ¶
func ToUnsignedInteger(typ Type) UnsignedInteger
Click to show internal directories.
Click to hide internal directories.
