Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Comments ¶
Comments [func Comments(node dst.Node)] is a function that removes comments from the specified Go Abstract Syntax Tree (AST) node. This function accepts a node of type dst.Node and recursively traverses the AST to remove all comments associated with the specified node. The types of nodes that have their comments removed include *dst.File, *dst.GenDecl, *dst.FuncDecl, *dst.ValueSpec, and *dst.TypeSpec.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.