utils

package
v0.3.18 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 3 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

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

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