Documentation
¶
Index ¶
- type Pointer
- func (p Pointer) Append(ptr Pointer) Pointer
- func (p Pointer) AppendIndex(i int) Pointer
- func (p Pointer) AppendKey(s string) Pointer
- func (p *Pointer) DecrementIndex()
- func (p Pointer) Equals(alt Pointer) bool
- func (p Pointer) HasSameAncestorsAs(alt Pointer) bool
- func (p *Pointer) IncrementIndex()
- func (p Pointer) IsAncestorOf(successor Pointer) bool
- func (p Pointer) IsEmpty() bool
- func (p Pointer) IsParentOf(child Pointer) bool
- func (p Pointer) LessThan(alt Pointer) (b bool)
- func (p Pointer) MarshalJSON() ([]byte, error)
- func (p Pointer) String() string
- func (p *Pointer) UnmarshalJSON(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pointer ¶
type Pointer []string
func NewPointer ¶
func NewPointer() Pointer
NewPointer creates a Pointer with a pre-allocated block of memory to avoid repeated slice expansions
func NewPointerFromPath ¶
func (Pointer) AppendIndex ¶
func (*Pointer) DecrementIndex ¶ added in v0.0.7
func (p *Pointer) DecrementIndex()
func (Pointer) HasSameAncestorsAs ¶
func (*Pointer) IncrementIndex ¶ added in v0.0.8
func (p *Pointer) IncrementIndex()
func (Pointer) IsAncestorOf ¶ added in v0.0.10
func (Pointer) IsParentOf ¶
func (Pointer) MarshalJSON ¶
func (*Pointer) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.