utils

package
v0.3.12 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAnnotationsAsMap

func GetAnnotationsAsMap(annotations parser.Annotations) map[string][]string

func GetStructLike added in v0.3.3

func GetStructLike(name string, ast *parser.Thrift) *parser.StructLike

TypeToStructLike try to find the defined parser.StructLike of a parser.Type in ast

func IsBasic

func IsBasic(name string) bool

func IsContainer

func IsContainer(name string) bool

func ParseAlias

func ParseAlias(tname string) (prefix, name string)

func ParseArr

func ParseArr(str string) ([]string, error)

ParseArr parses a string such as [xx,xx,xx,xxx] into string arr

func ParseKV

func ParseKV(str string) (map[string]string, error)

ParseKV parses a string such as {a:b,c:d} into a string map

func ParsePrefix

func ParsePrefix(filepath string) (prefix string)

func SplitSubfix added in v0.3.3

func SplitSubfix(t string) (typ, val string)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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