▲ 6 ▼ Astrewrite - walk and rewrite the AST of a go program
astrewrite provides a Walk() function, similar to ast.Inspect() from the ast package. The only difference is that the passed walk function can also return a node, which is used to rewrite the parent node. This provides an easy way to rewrite a given ast.Node while walking the AST.
Register to comment or vote on this story
Is this for fixing programs?