Documentation ¶ Overview ¶ Example (AstWalk) ¶ Output: Index ¶ func Walk(stmt ast.Stmt, f WalkFunc) error type WalkFunc Examples ¶ Package (AstWalk) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Walk ¶ func Walk(stmt ast.Stmt, f WalkFunc) error Walk walks the ASTs associated with a statement list generated by parser.ParseSrc each expression and/or statement is passed to the WalkFunc function. If the WalkFunc returns an error the walk is aborted and the error is returned Types ¶ type WalkFunc ¶ type WalkFunc func(interface{}) error WalkFunc is used in Walk to walk the AST Source Files ¶ View all Source files walk.go Click to show internal directories. Click to hide internal directories.