Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanConvert ¶
CanConvert returns true if the memory layout and the struct field names of 'from' match those of 'to'.
Types ¶
type VisitType ¶
type VisitType func(typ *reflect.StructField, typeIndex, depth int) error
VisitType processes type information. It is called by Walk. - typ is:
- a wrapped type (if len(typ.Index) == 0)
- an interface method (type.Index[0] < 0; ignore first value); this is clumsy...
- a field of a struct
- typeIndex is the unique index of this type in the set types enountered during a walk - depth counts the number of indirections used to get to this type from the root type
- for a map, the key and the element types are visited - for a function, the input argument types and output argument types are visited - for an interface, all contained functions are visited
Click to show internal directories.
Click to hide internal directories.