types

package
v0.9.10 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EqualMessage

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

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

func MatchBoringInteger(text string) []string

func MatchEnum

func MatchEnum(text string) []string

func MatchKeyedList

func MatchKeyedList(text string) []string

func MatchList

func MatchList(text string) []string

func MatchMap

func MatchMap(text string) []string

func MatchProp added in v0.9.1

func MatchProp(text string) []string

func MatchStruct

func MatchStruct(text string) []string

func ParseProp added in v0.9.1

func ParseProp(text string) *tableaupb.FieldProp

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