# Functions
DuplicateStmtError represents a duplicate statement error.
Fprint prints the value of x to the writer w.
NewBufferWriter returns a new buffer Writer.
NewTokenNode creates and returns a new TokenNode.
NewWriter returns a new Writer.
NotNilFilter returns true for field values that are not nil, it returns false otherwise.
No description provided by the author
SyntaxError represents a syntax error.
# Constants
No description provided by the author
ModeAuto is the default mode, which will automaticallydetermine whether to write a newline.
ModeExpectInSameLine will write in the same line.
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
AnyDataType is the any data type.
ArrayDataType is the array data type.
AST represents a parsed API file.
No description provided by the author
No description provided by the author
No description provided by the author
AtServerStmt represents @server statement.
BaseDataType is a common id type which contains bool, uint8, uint16, uint32, uint64, int8, int16, int32, int64, float32, float64, complex64, complex128, string, int, uint, uintptr, byte, rune, any.
No description provided by the author
No description provided by the author
CommentStmt represents a comment statement.
ElemExpr is the element expression.
No description provided by the author
ImportLiteralStmt represents an import literal statement.
InfoStmt is the info statement.
InterfaceDataType is the interface data type.
KVExpr is a key value expression.
MapDataType is the map data type.
No description provided by the author
PointerDataType is the pointer data type.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SliceDataType is the slice data type.
StructDataType is the structure data type.
SyntaxStmt represents a syntax statement.
TokenNode represents a token node in the AST.
TypeExpr is the type expression.
TypeGroupStmt is the type statement for type group.
TypeLiteralStmt is the type statement for type literal.
Writer is the writer of ast.
# Interfaces
No description provided by the author
DataType represents the data type.
Expr represents an expression in the AST.
ImportStmt represents an import statement.
Node represents a node in the AST.
Stmt represents a statement in the AST.
TypeStmt is the interface for type statement.
# Type aliases
CommentGroup represents a list of comments.
ElemExprList is the element expression list.
A FieldFilter may be provided to Fprint to control the output.
No description provided by the author
WriteMode is the mode of writing.