godump

command module
v0.0.0-...-43d1d85 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: MIT Imports: 2 Imported by: 0

README

godump

godump dumps AST and SSA IR of given package.

Usage

Dump AST
$ godump /tmp/main.go
/tmp/main.go
File
├── Doc
├── Package = /tmp/main.go:1:1
├── Name
│   └── Ident
│       ├── NamePos = /tmp/main.go:1:9
│       ├── Name = main
│       └── Obj
...
Dump SSA IR
$ godump -mode=ssa /tmp/main.go
command-line-arguments.main
        Block 0
                *ssa.Call       println("hello, world":string)
                *ssa.Return     return

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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