Documentation
¶
Overview ¶
Package astutil provides shared utilities for AST manipulation and string formatting.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandFieldListTypes ¶
ExpandFieldListTypes expands a field list into individual type strings. For fields with multiple names (e.g., "a, b int"), outputs the type once per name. For unnamed fields, outputs the type once.
func ExprToString ¶
ExprToString renders a dst.Expr to Go code. This function converts DST expressions back to their string representation.
func StringifyExpr ¶
StringifyExpr converts a DST expression to its string representation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.