Documentation ¶
Overview ¶
Package types implements the runtime type system
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LookupValue ¶
func LookupValue(r interface{}) string
func RegisterValue ¶
func RegisterValue(r interface{})
RegisterValue registers the type of x with the type table. Types need to be registered before values can be imported.
Types ¶
type FuncID ¶
type FuncID int32
FuncID uniquely represents a method in the context of an interface type
type TypeChar ¶
type TypeChar struct { ID TypeID Type reflect.Type // Go type of the receiver Func map[FuncID]*funcChar // Public methods Proc map[string]*funcChar // contains filtered or unexported fields }
TypeChar reflects on the methods of a Go type, and maintains exportable IDs for its methods
func (*TypeChar) FuncWithID ¶
func (*TypeChar) MainID ¶
MainID returns the ID of the first method in Func. It is useful for types that have exactly one method.
type TypeTabl ¶
type TypeTabl struct {
// contains filtered or unexported fields
}
TypeTabl assigns universal IDs to local, Go runtime types. These IDs are purely a function of the type's package path and name, thereby enabling interoperability between compatible but different binaries of the underlying Go code.