ast-manipulation-example
A simple example of manipulating the ast in Go. The program adds // TODO: document exported function
-comments on top of undocumented exported functions.
Simply run go run main.go
and take a look at new.go
.
A simple example of manipulating the ast in Go. The program adds // TODO: document exported function
-comments on top of undocumented exported functions.
Simply run go run main.go
and take a look at new.go
.