Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Common ¶
type Common struct {
// contains filtered or unexported fields
}
Common contains a not nested Type.
type CommonList ¶
type CommonList []TypeI
CommonList is a nested Type list.
func (CommonList) Follow ¶
func (l CommonList) Follow(path string) (v TypeI, ok bool)
Follow a CommonList type returns the nested Type object if the path is a default string. In all others cases it traverses the object path. It returns the default Type and false it the path is wrong. The first element of the path has to be an integer.
func (CommonList) Value ¶
func (l CommonList) Value() (v Type)
Value is a helper method that allows you to use nested union values and Common types. It returns always the default Type.
type CommonObject ¶
CommonObject is a nested Type object.
func (CommonObject) Follow ¶
func (o CommonObject) Follow(path string) (v TypeI, ok bool)
Follow a CommonObject type returns the nested Type object if the path is a default string. In all others cases it traverses the object path. It returns the default Type and false it the path is wrong.
func (CommonObject) Value ¶
func (o CommonObject) Value() (v Type)
Value is a helper method that allows you to use nested union values and Common types. It returns always the default Type.
type Type ¶
Type is a generic Type which is interface{} by default. It is possible to generate a type-safe package by using cheekybits/genny.