# Packages
Package astutil implements methods to walk and dump a tree.
# Functions
NewArrayType returns a new ArrayType node.
NewAssignment returns a new Assignment node.
NewBasicLiteral returns a new BasicLiteral node.
NewBinaryOperator returns a new binary operator.
NewBlock returns a new block statement.
NewBreak returns a new Break node.
NewCall returns a new Call node.
NewCase returns a new Case node.
NewChanType returns a new ChanType node.
NewComment returns a new Comment node.
NewCompositeLiteral returns a new CompositeLiteral node.
NewConst returns a new Const node.
NewContinue returns a new Continue node.
NewDefault returns a new Default node.
NewDefer returns a new Defer node.
NewExtends returns a new Extends node.
NewFallthrough returns a new Fallthrough node.
NewField returns a new Field node.
NewFor returns a new For node.
NewForIn represents a new ForIn node.
NewForRange returns a new ForRange node.
NewFunc returns a new Func node.
NewFuncType returns a new FuncType node.
NewGo returns a new Go node.
NewGoto returns a new Goto node.
NewIdentifier returns a new Identifier node.
NewIf returns a new If node.
NewImport returns a new Import node.
NewIndex returns a new Index node.
NewInterface returns a new Interface node.
NewLabel returns a new Label node.
NewMapType returns a new MapType node.
NewPackage returns a new Package node.
NewParameter returns a new Parameter node.
NewPlaceholder returns a new Placeholder node.
NewRaw returns a new Raw node.
NewRender returns a new Render node.
NewReturn returns a new Return node.
NewSelect returns a new Select node.
NewSelectCase returns a new SelectCase node.
NewSelector returns a new Selector node.
NewSend returns a new Send node.
NewShow returns a new Show node.
NewSliceType returns a new SliceType node.
NewSlicing returns a new Slicing node.
NewStatements returns a new Statements node.
NewStructType returns a new StructType node.
NewSwitch returns a new Switch node.
NewText returns a new Text node.
NewTree returns a new Tree node.
NewTypeAssertion returns a new TypeAssertion node.
NewTypeDeclaration returns a new TypeDeclaration node.
NewTypeSwitch returns a new TypeSwitch node.
NewUnaryOperator returns a new UnaryOperator node.
NewURL returns a new URL node.
NewUsing returns a new Using node.
NewVar returns a new Var node.
StringWithParenthesis returns the string representation of the given expression, surrounding it by parenthesis if necessary.
# Constants
+=.
&=.
&^=.
:=.
--.
/=.
++.
<<=.
%=.
*=.
|=.
>>=.
=.
-=.
^=.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Formats.
Formats.
Formats.
Formats.
Formats.
Formats.
No description provided by the author
No description provided by the author
No description provided by the author
+.
&.
&&.
&^.
&.
|.
contains.
/.
==.
and.
not.
or.
>.
>=.
<<.
<.
<=.
%.
*.
!.
not contains.
!=.
||.
*.
<-.
>>.
-.
^.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
ArrayType node represents an array type.
Assignment node represents an assignment statement.
BasicLiteral represents integer, floating-point, imaginary, rune and string literals.
BinaryOperator node represents a binary operator expression.
Block node represents a block with his own scope.
Break node represents a "break" statement.
Call node represents a function call expression.
Case node represents "case" and "default" statements.
ChanType node represents a chan type.
Comment node represents a comment statement in the form {# ..
CompositeLiteral node represents a composite literal.
Const node represents a "const" declaration.
Continue node represents a "continue" statement.
Cut indicates, in a Text node, how many bytes should be cut from the left and the right of the text before rendering the Text node.
Default node represents a default expression.
Defer node represents a "defer" statement.
Extends node represents an "extends" declaration.
Fallthrough node represents a "fallthrough" statement.
Field represents a field declaration in a struct type.
For node represents a "for" statement.
ForIn node represents a "for in" statement.
ForRange node represents the "for range" statement.
Func node represents a function declaration or literal.
FuncType node represents a function type.
Go node represents a "go" statement.
Goto node represents a "goto" statement.
Identifier node represents an identifier expression.
If node represents an "if" statement.
Import node represents a "import" declaration.
Index node represents an index expression.
Interface node represents an interface type.
KeyValue represents a key value pair in a slice, map or struct composite literal.
Label node represents a label statement.
MapType node represents a map type.
Package node represents a package.
Parameter node represents a parameter in a function type, literal or declaration.
Placeholder node represents a special placeholder node.
Position is a position of a node in the source.
Raw node represents a "raw" statement.
Render node represents a "render <path>" expression.
Return node represents a "return" statement.
Select node represents a "select" statement.
SelectCase represents a "case" statement in a select.
Selector node represents a selector expression.
Send node represents a "send" statement.
Show node represents the "show <expr>" statement and its short syntax "{{ ..
SliceType node represents a slice type.
Slicing node represents a slicing expression.
Statements node represents a "{%% ..
StructType node represents a struct type.
Switch node represents a "switch" statement.
Text node represents a text in a template source.
Tree node represents a tree.
TypeAssertion node represents a type assertion expression.
TypeDeclaration node represents a type declaration, that is an alias declaration or a type definition.
TypeSwitch node represents a "switch" statement on types.
UnaryOperator node represents an unary operator expression.
Upvar represents a variable defined outside function body.
URL node represents a URL in an attribute value or Markdown.
Using node represents a "using" statement.
Var node represents a "var" declaration.
# Interfaces
Expression node represents an expression.
Node is a node of the tree.
Operator represents an operator expression.
# Type aliases
AssignmentType represents a type of assignment.
ChanDirection represents the direction of a channel type.
Context indicates the context in which a show statement is evaluated.
A Format represents a content format.
LiteralType represents the type of a literal.
OperatorType represents an operator type in a unary and binary expression.