Versions in this module Expand all Collapse all v0 v0.1.0 Jan 28, 2023 Changes in this version + func Inspect(f *ast.File, fSet *token.FileSet, cb callback, options ...InspectOption) error + func Logger() *zlog.Logger + func RenewLogger(options []zlog.Option) + type DumpHook func(node *Node, w io.Writer) error + type Fail struct + Column int + Line int + Msg string + Path string + Sev string + type Goast struct + func New(options ...Option) *Goast + func (x *Goast) Dump(filePath string, r io.Reader, w io.Writer) error + func (x *Goast) Eval(filePath string, r io.Reader) ([]*Fail, error) + func (x *Goast) Sync(src string) error + type InspectOption func(options *inspectOptions) + func WithAllMatched() InspectOption + func WithFuncName(funcName string) InspectOption + func WithLine(line int) InspectOption + func WithObjectDepth(depth int) InspectOption + func WithRootOnly() InspectOption + type Node struct + DirName string + FileName string + Kind string + Node ast.Node + Path string + func (x *Node) Pos(p token.Pos) token.Position + type Option func(g *Goast) + func WithCompact(enable bool) Option + func WithDumpHook(hook DumpHook) Option + func WithIgnoreAutoGen() Option + func WithInspectOptions(options ...InspectOption) Option + func WithOpacClient(client opac.Client) Option