utils

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: Apache-2.0 Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const DISABLE_ENV = "KITEX_APACHE_CODEC_DISABLE_WARNING"

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)

func WarningApache added in v0.3.18

func WarningApache(structName 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