Documentation ¶ Index ¶ func Fold(prog *ast.Program) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Fold ¶ func Fold(prog *ast.Program) Fold rewrites prog in place, replacing constant expressions with literals. It is safe to call unconditionally; on a program with no foldable expressions it leaves the tree unchanged. Types ¶ This section is empty. Source Files ¶ View all Source files fold.gooptimize.go Click to show internal directories. Click to hide internal directories.