Documentation
¶
Index ¶
- func Alias[T any]()
- func ExtractStructure(mapping map[annotation.Node][]Convertor) (re map[string]Convertor)
- func FindAnnotations[T any](a []annotation.Annotation) []T
- func Inject(proc *Processor) (ops map[string][]byte)
- func Or[T any](expr bool, a1 T, a2 T) T
- func Proxy(proc *Processor) (ops map[string][]byte)
- func Router(proc *Processor) (ops map[string][]byte)
- func ToSnakeCase(str string) (value string)
- type Argv
- type Builder
- type Convertor
- func (convert *Convertor) Alias(n string)
- func (convert *Convertor) As(name string) bool
- func (convert *Convertor) ExtractArguments(lookup annotation.Lookup, node ast.Node) (args []Argv)
- func (convert *Convertor) ExtractReturns(lookup annotation.Lookup, node ast.Node) (args []Argv)
- func (convert *Convertor) GetAstName() (n string)
- func (convert *Convertor) ImportPath() string
- func (convert *Convertor) Is(enum GoAst) bool
- func (convert *Convertor) String() (str string, err error)
- type GoAst
- type Imported
- type Interface
- type Processor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractStructure ¶
func ExtractStructure(mapping map[annotation.Node][]Convertor) (re map[string]Convertor)
func FindAnnotations ¶
func FindAnnotations[T any](a []annotation.Annotation) []T
func ToSnakeCase ¶
Types ¶
type Argv ¶
type Convertor ¶
type Convertor struct {
// contains filtered or unexported fields
}
func (*Convertor) ExtractArguments ¶
func (*Convertor) ExtractReturns ¶
func (*Convertor) GetAstName ¶
func (*Convertor) ImportPath ¶
Click to show internal directories.
Click to hide internal directories.