dump

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: 7 Imported by: ? modules, 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 AnnotationsTemplate = `` /* 290-byte string literal not displayed */
View Source
const ConstListTemplate = `` /* 171-byte string literal not displayed */
View Source
const ConstMapTemplate = `` /* 205-byte string literal not displayed */
View Source
const ConstValueTemplate = `` /* 426-byte string literal not displayed */
View Source
const ConstantTemplate = `` /* 262-byte string literal not displayed */
View Source
const EnumTemplate = `` /* 365-byte string literal not displayed */
View Source
const ExceptionTemplate = `` /* 254-byte string literal not displayed */
View Source
const FieldTemplate = `` /* 405-byte string literal not displayed */
View Source
const FunctionTemplate = `` /* 526-byte string literal not displayed */
View Source
const IDLTemplate = `` /* 1249-byte string literal not displayed */
View Source
const ServiceTemplate = `` /* 299-byte string literal not displayed */
View Source
const SingleLineFieldTemplate = `` /* 452-byte string literal not displayed */

SingleLineFieldTemplate for args and throws of functions

View Source
const StructTemplate = `` /* 248-byte string literal not displayed */
View Source
const TypeDefTemplate = `` /* 214-byte string literal not displayed */
View Source
const TypeTemplate = `` /* 340-byte string literal not displayed */
View Source
const UnionTemplate = `` /* 246-byte string literal not displayed */

Variables

View Source
var UseOldDumpFunction bool

Functions

func DumpIDL

func DumpIDL(ast *parser.Thrift) (string, error)

DumpIDL Dump the ast to idl string very fast

func DumpIDL_V1 added in v0.4.0

func DumpIDL_V1(ast *parser.Thrift) (string, error)

DumpIDL_V1 Deprecated DumpIDL_V1 Dump the ast to idl string by go template, use DumpIDL() for better speed.

func JoinQuotes

func JoinQuotes(s string) string

func RemoveLastComma

func RemoveLastComma(s string) string

func ReplaceQuotes

func ReplaceQuotes(s string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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