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 Text.
type CommonList ¶
type CommonList []TextI
CommonList is a nested Text list.
func (CommonList) Follow ¶
func (l CommonList) Follow(path string) (v TextI, ok bool)
Follow a CommonList type returns the nested Text object if the path is a default string. In all others cases it traverses the object path. It returns the default Text 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 Text)
Value is a helper method that allows you to use nested union values and Common types. It returns always the default Text.
type CommonObject ¶
CommonObject is a nested Text object.
func (CommonObject) Follow ¶
func (o CommonObject) Follow(path string) (v TextI, ok bool)
Follow a CommonObject type returns the nested Text object if the path is a default string. In all others cases it traverses the object path. It returns the default Text and false it the path is wrong.
func (CommonObject) Value ¶
func (o CommonObject) Value() (v Text)
Value is a helper method that allows you to use nested union values and Common types. It returns always the default Text.