protobufgoogle.golang.org/protobuf/internal/fieldsort Index | Files

package fieldsort

import "google.golang.org/protobuf/internal/fieldsort"

Package fieldsort defines an ordering of fields.

The ordering defined by this package matches the historic behavior of the proto package, placing extensions first and oneofs last.

There is no guarantee about stability of the wire encoding, and users should not depend on the order defined in this package as it is subject to change without notice.

Index

Functions

func Less

Less returns true if field a comes before field j in ordered wire marshal output.

Source Files

fieldsort.go

Version
v1.20.0
Published
Mar 2, 2020
Platform
linux/amd64
Imports
1 packages
Last checked
45 minutes ago

Tools for package owners.