Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(value interface{})
Register records a type, identified by a value for that type, under its internal type name. That name will identify the concrete type of a value sent or received as an interface variable. Only types that will be transferred as implementations of interface values need to be registered. Expecting to be used only during initialization, it panics if the mapping between types and names is not a bijection.
Types ¶
type CommonType ¶
func (*CommonType) Descr ¶
func (t *CommonType) Descr() []Descr
func (*CommonType) ID ¶
func (t *CommonType) ID() ID
func (*CommonType) Kind ¶
func (*CommonType) Kind() Kind
func (*CommonType) Name ¶
func (t *CommonType) Name() string
type ID ¶
type ID uint32
ID represents a Type as an integer that can be stored on disk or passed on the wire.
type Kind ¶
type Kind uint
A Kind represents the specific kind of type that a Type represents. The zero Kind is not a valid kind.
type Type ¶
type Type interface { ID() ID Name() string Kind() Kind Descr() []Descr // contains filtered or unexported methods }
Type describes a serializable data type description
func TypeFromID ¶
TypeFromID returns the dtypes.Type corresponding to ID. TypeFromID returns nil if no such ID is known to the runtime.