methodPath.Segmentsfunc (path Path) Segments() []stringSegments returns a copy of the path segments.Source query/path.go:68@returnsThe declared result.Related typesPathAn immutable, validated document field path.