type Path … // NewPath creates a root Path object. func NewPath(name string, moreNames ...string) *Path { … } // Root returns the root element of this Path. func (p *Path) Root() *Path { … } // Child creates a new Path that is a child of the method receiver. func (p *Path) Child(name string, moreNames ...string) *Path { … } // Index indicates that the previous Path is to be subscripted by an int. // This sets the same underlying value as Key. func (p *Path) Index(index int) *Path { … } // Key indicates that the previous Path is to be subscripted by a string. // This sets the same underlying value as Index. func (p *Path) Key(key string) *Path { … } // String produces a string representation of the Path. func (p *Path) String() string { … }