Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 1.05 KB

readme.md

File metadata and controls

26 lines (19 loc) · 1.05 KB

reveal GitHub Actions

reveal is a statical analysis tool for Go codebases that aims at extracting valuable information before runtime.

Features

Development

go run . ./tests/gin-json | tee /tmp/openapi.json
redoc-cli serve -w /tmp/openapi.json # npm i -g redoc-cli

Implementation Notes

reveal uses golang.org/x/tools/go/packages to statically parse and resolve types for the packages provided to this tool. So it uses the same base implementation as the Go compiler. Because we are not doing this a runtime, some information might not be available (e.g.: conditionnal routes based on runtime parameters). Multiple HTTP servers from the same service will also be merged into a single OpenAPI schema.