# Functions
CommentTarget determines the appropriate node for attaching a comment within a Go abstract syntax tree.
Doc extracts the leading comment from the specified node, concatenating all lines of the comment into a single string.
Find locates a declaration within the abstract syntax tree of Go code given an identifier and the root node.
FindFunc locates a function declaration within the given root node of the abstract syntax tree that matches the specified identifier.
FindInterfaceMethod locates a method of a specified interface within the given abstract syntax tree node.
FindType locates a type declaration within the abstract syntax tree of a Go source file, given its identifier and the root node of the tree.
FindValue locates a variable declaration within the abstract syntax tree rooted at the specified node, matching the provided identifier.
Format formats a Go AST [dst.File] into a []byte.
Fprint formats a *dst.File and writes the result to an io.Writer.
HasDoc reports whether the provided decorations contain any documentation comments.
Identifier extracts the name and determines the export status of the given node.
IsExportedIdentifier determines whether the given identifier is exported in Go.
Minify applies transformations to a given DST node based on the provided MinifyOptions, stripping parts like function bodies, comments, and optionally affecting exported identifiers only.
MustParse parses the given code and returns the corresponding DST node.
Parse reads the given source code and constructs an abstract syntax tree for that code.
StripIdentifierPrefix removes any prefix before a colon in the given identifier and returns the resulting string without the prefix.
# Variables
MinifyAll represents the most aggressive reduction of a DST, stripping all comments and function bodies, and applying these changes to both unexported and exported entities.
MinifyComments specifies options to remove comments from package declarations, function declarations, and struct declarations for exported identifiers.
MinifyExported applies minification settings to exported Go code elements, including comments and function bodies, while preserving the visibility of these elements.
MinifyNone represents the default state where no minification options are applied.
MinifyUnexported specifies options to minify unexported function bodies and comments as well as structure comments.
# Structs
MinifyOptions represents a set of configurable behaviors to control the minification process of Go source code represented by the [dst.Node] structure.