package
0.2.1
Repository: https://github.com/techxmind/truss.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AllFuncSourceCode returns the the source code for all the functions defined in the same file as the one provided, including the source of the function provided.
ApplyTemplate applies a template with a given name, executor context, and function map.
BuildParamMap takes a string representing a url template and returns a map indicating the location of each parameter within that url, where the location is the index as if in a slash-separated sequence of path components.
EnglishNumber takes an integer and returns the english words that represents that number, in base ten.
FormatCode takes a string representing some go code and attempts to format that code.
FuncSourceCode returns a string representing the source code of the function provided to it.
No description provided by the author
No description provided by the author
LowCamelName returns a CamelCased string, but with the first letter lowercased.
NewBinding creates a Binding struct based on a svcdef.HTTPBinding.
NewHelper builds a helper struct from a service declaration.
NewMethod builds a Method struct from a svcdef.ServiceMethod.
PathParams takes a url and a gRPC-annotation style url template, and returns a map of the named parameters in the template and their values in the given url.
RemoveBraces replace all curly braces in the provided string, opening and closing, with empty strings.

# Variables

DigitEnglish is a map of runes of digits zero to nine to their lowercase english language spellings.
TemplateFuncs contains a series of utility functions to be passed into templates and used within those templates.

# Structs

Binding contains the distillation of information within an svcdef.HTTPBinding that's useful for templating http transport.
Field contains the distillation of information within an svcdef.Field that's useful for templating http transport.
Helper is the base struct for the data structure containing all the information necessary to correctly template the HTTP transport functionality of a service.
Method contains the distillation of information within an svcdef.ServiceMethod that's useful for templating http transport.
OneofField contains the distillation of information within an []*svcdef.Field representing a single oneof field from protobuf that is useful for templating http transport.