types

package
v0.10.6 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const TypeGroup = ungreedyTypeGroup

Variables

This section is empty.

Functions

func BelongToFirstElement added in v0.9.15

func BelongToFirstElement(name, prefix string) bool

BelongToFirstElement returns true if the name has specified `prefix+"1"` and the next character is not digit.

func IsEnum added in v0.9.15

func IsEnum(text string) bool

func IsKeyedList added in v0.9.15

func IsKeyedList(text string) bool

func IsList added in v0.9.15

func IsList(text string) bool

func IsMap added in v0.9.15

func IsMap(text string) bool

func IsScalarType

func IsScalarType(t string) bool

func IsStruct added in v0.9.15

func IsStruct(text 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, error)

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