# Functions
Addr creates an &Expr expression.
Append creates an a = append(a, b) statement.
ArrayEllipsis creates a `[...]elt` ArrayType.
ArrayN creates a `[n]elt` ArrayType.
Assert creates a TypeAssertExpr.
AssertType creates a TypeAssertExpr.
Assign creates an = AssignStmt.
Binary creates a BinaryExpr.
Block creates a BlockStmt.
Break creates a `break` BranchStmt.
BreakTo creates a `break label` BranchStmt.
Call creates a CallExpr.
Call creates a Call ExprStmt.
CallVararg creates an `arg...` CallStmt.
Case creates a `case x, y, z:` CaseClause.
Commentf creates a Comment from a string, adding "// " in front.
Comments create a CommentGroup from lines.
Composite creates a CompositeLit.
Const creates a `const` GenDecl.
Continue creates a `continue` BranchStmt.
ContinueTo creates a `continue label` BranchStmt.
Dec creates an `x--` IncDecStmt.
DefaultCase creates a `default:` CaseClause.
DefaultComm creates a `default:` CommClause.
Defer creates a DeferStmt.
DeferVararg creates an `arg...` DeferStmt.
Dot creates a SelectorExpr.
No description provided by the author
No description provided by the author
Fallthrough creates a `fallthrough` BranchStmt.
Fields creates a FieldList.
Float creates a BasicLit for a float64.
Format formats a node as a snippet of Go source code.
Func creates a FuncLit.
FuncD creates a FuncDecl.
FuncT creates a FuncLit from a FuncType and a body.
Goto creates a `goto label` BranchStmt.
I creates an Ident.
Idents creates an []Ident from ids.
If creates an IfStmt.
Import creates an `import` GenDecl.
No description provided by the author
No description provided by the author
Inc creates an `x++` IncDecStmt.
Index creates an IndexExpr.
Init creates an := AssignStmt.
Int creates a BasicLit for an int.
Iota creates an iota reference.
KV creates a KeyValueExpr.
Lit creates a BasicLit for an arbitrary type.
Map creates a MapType.
Nil creates a `nil` Ident.
No description provided by the author
No description provided by the author
No description provided by the author
Range creates a RangeStmt.
Recv creates a `<-ch` UnaryExpr.
RecvAssignComm creates a `case x, y op <-ch:` CommClause.
RecvInitComm creates a `case x, y := <-ch:` CommClause.
Return creates a ReturnStmt.
Select creates a SelectStmt.
Send creates a SendStmt.
SendComm creates a `case ch <- value:` CommClause.
Slice creates a SliceExpr.
SliceType creates a `[]elt` ArrayType.
Star creates a StarExpr.
String creates a BasicLit for a string.
Struct creates a StructType.
Switch creates a SwitchStmt.
T creates a Token.
Types creates a `type` GenDecl.
TypeSwitch creates a TypeSwitchStmt.
Unary creates a UnaryExpr.
Var creates a `var` GenDecl.
# Structs
ArrayType ...
AssignStmt ...
BadDecl ...
BadExpr ...
BadStmt ...
BasicLit ...
BinaryExpr ...
BlockStmt ...
BranchStmt ...
CallExpr ...
CaseClause ...
ChanType ...
CommClause ...
Comment ...
CommentGroup ...
CompositeLit ...
DeclStmt ...
DeferStmt ...
Ellipsis ...
EmptyStmt ...
ExprStmt ...
Field ...
FieldList ...
File ...
ForStmt ...
FuncDecl ...
FuncLit ...
FuncType ...
GenDecl ...
GoStmt ...
Ident ...
IfStmt ...
ImportSpec ...
IncDecStmt ...
IndexExpr ...
InterfaceType ...
KeyValueExpr ...
LabeledStmt ...
MapType ...
ParenExpr ...
RangeStmt ...
ReturnStmt ...
SelectorExpr ...
SelectStmt ...
SendStmt ...
SliceExpr ...
StarExpr ...
StructType ...
SwitchStmt ...
Token ...
TypeAssertExpr ...
TypeSpec ...
TypeSwitchStmt ...
UnaryExpr ...
ValueSpec ...
# Type aliases
NoCommaSepFieldList ...