# Functions
No description provided by the author
No description provided by the author
BuildScope creates a scope of the AST with its includes processed recursively.
No description provided by the author
No description provided by the author
GetTypeID returns the thrift type ID literal for the given type which is suitable to concate with "Read" or "Write" to produce a valid method name in the TProtocol interface.
GetTypeIDConstant returns the thrift type ID literal for the given type which is suitable to concate with "thrift." to produce a valid type ID constant.
IsBaseType determines whether the given type is a base type.
IsConstantInGo tells whether a constant in thrift IDL results in a constant in go.
IsFixedLengthType determines whether the given type is a fixed length type.
IsIntType determines whether the given type is a Int type.
IsStrType determines whether the given type is a Str type.
No description provided by the author
NeedRedirect deterimines whether the given field should result in a pointer type.
NewCodeUtils creates a new CodeUtils.
NewFrugalResolver creates a new FrugalResolver with the given scope.
NewResolver creates a new Resolver with the given scope.
SupportIsSet determines whether a field supports IsSet query.
No description provided by the author
No description provided by the author
No description provided by the author
IsBaseType determines whether the given type is a base type.
# Constants
Default libraries.
Default libraries.
Default libraries.
Default libraries.
Default libraries.
Default libraries.
Default libraries.
Default libraries.
# Structs
CodeUtils contains a set of utility functions.
Constant is a wrapper for the parser.Constant.
Enum is a wrapper for the parser.Enum.
EnumValue is a wrapper for the parser.EnumValue.
Features controls the behavior of CodeUtils.
Field is a wrapper for the parser.Field.
FrugalResolver resolves type names for frugal.
Function is a wrapper for the parser.Function.
GoBackend generates go codes.
Include associates an import in golang with the corresponding scope that built from an thrift AST in the include list.
ReadWriteContext contains information for generating codes in ReadField* and WriteField* functions.
Resolver resolves names for types, names and initialization value for thrift AST nodes in a scope (the root scope).
Scope contains the type symbols defined in a thrift IDL and wraps them to provide access to resolved names in go code.
Service is a wrapper for the parser.Service.
StructLike is a wrapper for the parser.StructLike.
Typedef is a wrapper for the parser.Typedef.