8000 GitHub - kkHAIKE/ssaviewer: a simple Golang SSA viewer tool that can be used for code analysis or to create a linter · GitHub
[go: up one dir, main page]

Skip to content
kkHAIKEPublic

About

a simple Golang SSA viewer tool that can be used for code analysis or to create a linter

Topics

Resources

Stars

12 stars

Watchers

1 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

Repository files navigation

ssaviewer

A simple Golang SSA viewer tool that can be used for code analysis or to create a linter.

ssa.html generate code modify from src/cmd/compile/internal/ssa/html.go

because golang.org/x/tools/go/ssa and src/cmd/compile/internal/ssa are both SSA implementations in Go, but they are very different from each other.

screenshot

screenshot

install

go get github.com/kkHAIKE/ssaviewer

usage

  1. cd into your package folder
  2. ssaviewer show all ssa.Function
  3. ssaviewer function_name generate the ssa.html

TODOs

  • AST location binding

search key

  1. GOSSAFUNC

Support

If you find this project useful, consider sponsoring my open-source work.

About

a simple Golang SSA viewer tool that can be used for code analysis or to create a linter

Topics

Resources

Stars

12 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

0