type

Path

type Path struct { segments []string }

An immutable, validated document field path.

Source query/path.go:29

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