Documentation ¶
Index ¶
- func BlockStmt(stmts ...ast.Stmt) *ast.BlockStmt
- func CallExpr(fun ast.Expr, args ...ast.Expr) *ast.CallExpr
- func DataToByteSlice(data []byte) *ast.CallExpr
- func ExprStmt(expr ast.Expr) *ast.ExprStmt
- func IndexExpr(name string, index ast.Expr) *ast.IndexExpr
- func IntLit(value int) *ast.BasicLit
- func LambdaCall(resultType ast.Expr, block *ast.BlockStmt) *ast.CallExpr
- func ReturnStmt(results ...ast.Expr) *ast.ReturnStmt
- func StringLit(value string) *ast.BasicLit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataToByteSlice ¶
DataToByteSlice turns a byte slice like []byte{1, 2, 3} into an AST expression
func LambdaCall ¶
LambdaCall "func() resultType {block}()"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.