Documentation
¶
Overview ¶
Package types have functions to create an instantiation of one type from the type name.
Index ¶
- func AllocStructPtrs(val reflect.Value)
- func AnySettableValue(val reflect.Value) bool
- func Copy(src reflect.Value) reflect.Value
- func Dump()
- func GetType(tname string) (reflect.Type, error)
- func Insert(i interface{})
- func InsertName(tname string, i interface{})
- func InsertType(t reflect.Type)
- func IsEqualName(val reflect.Value, tname string) bool
- func Make(t reflect.Type) (val reflect.Value)
- func MakeNew(tname string, bufcap int) (val reflect.Value)
- func MakeNewType(t reflect.Type, bufcap int) (val reflect.Value)
- func MakeZero(tname string) reflect.Value
- func Name(i interface{}) string
- func NameOf(t reflect.Type) string
- func Type(tname string) reflect.Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllocStructPtrs ¶
AllocStructPtrs find pointers in a struct and alloc than recursivily.
func AnySettableValue ¶
AnySettableValue find if exist one value that you can set.
func Insert ¶
func Insert(i interface{})
Insert type for future instantiation. Do this in the same package where the type was declared. The use of init function is advised.
func InsertName ¶
func InsertName(tname string, i interface{})
InsertName inserts a new type with the name.
func InsertType ¶
InsertType insertes a type for future instantiation. Do this in the same package where the type was declared. The use of init function is advised.
func IsEqualName ¶
IsEqualName compares the value type name with one name.
func MakeNewType ¶
MakeNewType creates a new value with type t.
func Name ¶
func Name(i interface{}) string
Name accepts a variable of any type and returns the package name and the name of the type or a function
Types ¶
This section is empty.