ast

Basic AST Traversal in Go

14.07.2017 - 8m read - Go Golang ast

Looking at and interacting with the AST (Abstract Syntax Tree) of a program can be both interesting and useful for automation. In this post, we'll look at an example of how to parse a Go program to an AST and how to analyse it.