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 Union.
type CommonList ¶
type CommonList []UnionI
CommonList is a nested Union list.
func (CommonList) Follow ¶
func (l CommonList) Follow(path string) (v UnionI, ok bool)
Follow a CommonList type returns the nested Union object if the path is a default string. In all others cases it traverses the object path. It returns the default Union 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 Union)
Value is a helper method that allows you to use nested union values and Common types. It returns always the default Union.
type CommonObject ¶
CommonObject is a nested Union object.
func (CommonObject) Follow ¶
func (o CommonObject) Follow(path string) (v UnionI, ok bool)
Follow a CommonObject type returns the nested Union object if the path is a default string. In all others cases it traverses the object path. It returns the default Union and false it the path is wrong.
func (CommonObject) Value ¶
func (o CommonObject) Value() (v Union)
Value is a helper method that allows you to use nested union values and Common types. It returns always the default Union.
type Union ¶
type Union interface {
// contains filtered or unexported methods
}
Union is base type of the nested UnionI.