astutil

package
v0.0.0-...-fec82c7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Example (AstWalk)
Output:

Index

Examples

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL