Back to godoc.org

Package fieldsort

v1.25.0
Latest Go to latest

The latest major version is .

Published: Jun 22, 2020 | License: BSD-3-Clause | Module: google.golang.org/protobuf

Overview

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

func Less

func Less(a, b protoreflect.FieldDescriptor) bool

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

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier