-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprotopath.go
More file actions
4 lines (4 loc) · 763 Bytes
/
protopath.go
File metadata and controls
4 lines (4 loc) · 763 Bytes
1
2
3
4
// Package protopath implements facilities to retrieve values from Protocol Buffer messages using proto paths - lists of Unicode characters that encodes a series of segments. Each segment represent an access operations on Protocol Buffers composite type (message, list or map), that when executed will retrieve a specific value.
//
// Although proto paths are similar to JSON paths (RFC 9535) they are more lightweight as they focus purely on accessing values and omit any complex sematic (like conditions or transformations) to from a viable alternative to Protocol Buffer field maps. Main difference between proto paths and field maps is that the former can work not only on messages but also on (and within) lists (repeated fields) and maps.
package protopath