type
Path
type Path struct {
segments []string
}An immutable, validated document field path.
Segments()[]string- A defensive copy of the path segments.
String()string- Canonical dot-separated form.
Segments begin with a lowercase letter and may contain letters, digits, underscores, or hyphens. Paths are limited to MaxPathSegments (64) and MaxPathBytes (4096).
Path implements JSON encoding as its canonical dot-separated string.
Methods
Path.MarshalJSON()MarshalJSON encodes a path in its canonical dot-separated form.
Path.Segments()Segments returns a copy of the path segments.
Path.String()Public method Path.String from github.com/riducms/ridu/query.
Path.UnmarshalJSON()UnmarshalJSON validates the canonical string before replacing the path.