Documentation ¶
Index ¶
- Variables
- func ExtractExportedFuncDecls(decls []ast.Decl) []*ast.FuncDecl
- func FlatMap[T any, U any](ts []T, f func(T) []U) []U
- func FlattenField(field *ast.Field) []*ast.Field
- func MakeAssignments(resultFields []*ast.Field) []ast.Stmt
- func MakeRange(funcName, receiver *ast.Ident, params []*ast.Field, resultCount int) *ast.RangeStmt
- func MakeResultNames(count int) []string
- func MakeReturn(count int) *ast.ReturnStmt
- func Map[T any, U any](ts []T, f func(T) U) []U
- func Transform(decl *ast.FuncDecl) *ast.FuncDecl
- func TransformParams(params []*ast.Field) (newParams []*ast.Field, receiverIdentifier *ast.Ident)
- func TransformResult(field *ast.Field) *ast.Field
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func MakeResultNames ¶
func MakeReturn ¶
func MakeReturn(count int) *ast.ReturnStmt
func TransformParams ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.