package order
Import Path
google.golang.org/protobuf/internal/order (on go.dev)
Dependency Relation
imports 3 packages, and imported by 3 packages
Package-Level Type Names (total 8, in which 6 are exported)
EntryRanger is an interface for visiting all fields in a message.
The protoreflect.Map type implements this interface.
( T) Range(VisitEntry)
google.golang.org/protobuf/reflect/protoreflect.Map (interface)
*google.golang.org/protobuf/internal/impl.mapReflect
func RangeEntries(es EntryRanger, less KeyOrder, fn VisitEntry)
FieldOrder specifies the ordering to visit message fields.
It is a function that reports whether x is ordered before y.
func RangeFields(fs FieldRanger, less FieldOrder, fn VisitField)
var AnyFieldOrder
var IndexNameFieldOrder
var LegacyFieldOrder
var NumberFieldOrder
FieldRnger is an interface for visiting all fields in a message.
The protoreflect.Message type implements this interface.
( T) Range(VisitField)
google.golang.org/protobuf/reflect/protoreflect.Message (interface)
google.golang.org/protobuf/internal/impl.aberrantMessage
*google.golang.org/protobuf/internal/impl.extensionMap
*google.golang.org/protobuf/internal/impl.messageReflectWrapper
*google.golang.org/protobuf/internal/impl.messageState
github.com/golang/protobuf/ptypes.dynamicAny
func RangeFields(fs FieldRanger, less FieldOrder, fn VisitField)
KeyOrder specifies the ordering to visit map entries.
It is a function that reports whether x is ordered before y.
func RangeEntries(es EntryRanger, less KeyOrder, fn VisitEntry)
var AnyKeyOrder
var GenericKeyOrder
VisitEntry is called everytime a map entry is visited.
VisitField is called everytime a message field is visited.
Package-Level Functions (total 2, both are exported)
RangeEntries iterates over the entries of es according to the specified order.
RangeFields iterates over the fields of fs according to the specified order.
Package-Level Variables (total 8, in which 6 are exported)
AnyFieldOrder specifies no specific field ordering.
AnyKeyOrder specifies no specific key ordering.
GenericKeyOrder sorts false before true, numeric keys in ascending order,
and strings in lexicographical ordering according to UTF-8 codepoints.
IndexNameFieldOrder sorts non-extension fields before extension fields.
Non-extensions are sorted according to their declaration index.
Extensions are sorted according to their full name.
LegacyFieldOrder sorts fields in the same ordering as emitted by
wire serialization in the github.com/golang/protobuf implementation.
NumberFieldOrder sorts fields by their field number.
The pages are generated with Golds v0.3.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |