types

package
v0.7.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EqualMessage added in v0.7.2

func EqualMessage(v1, v2 pref.Value) bool

equalMessage reports whether two messages are equal. If two messages marshal to the same bytes under deterministic serialization, then Equal is guaranteed to report true.

func EqualValue added in v0.7.2

func EqualValue(fd pref.FieldDescriptor, x, y pref.Value) bool

equalValue compares two singular values. NOTE(wenchy): borrowed from https://github.com/protocolbuffers/protobuf-go/blob/v1.27.1/proto/equal.go#L113

func IsScalarType

func IsScalarType(t string) bool

func MatchBoringInteger added in v0.7.4

func MatchBoringInteger(text string) []string

func MatchEnum added in v0.7.1

func MatchEnum(text string) []string

func MatchKeyedList added in v0.7.2

func MatchKeyedList(text string) []string

func MatchList added in v0.7.1

func MatchList(text string) []string

func MatchMap added in v0.7.1

func MatchMap(text string) []string

func MatchStruct added in v0.7.1

func MatchStruct(text string) []string

Types

type Kind

type Kind int
const (
	ScalarKind Kind = iota
	EnumKind
	ListKind
	MapKind
	MessageKind
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL