gopher is a code visible Golang parser.
- Parses Go projects and outputs structured data.
- Supports custom module and type filtering.
- Excludes specified directories and files.
- Outputs results in JSON format for further processing.
Clone the repository and build the binary:
git clone https://github.com/code-visible/gopher.git
cd gopher
CGO_ENABLED=0 go build -o gopher .
gopher \
--project=kubernetes-1.12.0 \
--directory=. \
--dump=dist/kubernets.json \
--module=k8s.io/kubernetes \
--excludes=vendor,logo,.* ,tests \
--types=*.json,*.yaml,README.md
--project
: Name of the project.--directory
: Root directory to parse.--dump
: Output file path (JSON).--module
: Go module to analyze.--excludes
: Comma-separated list of directories/files to exclude.--types
: Comma-separated list of file types to include.
The output is a JSON file containing structured information about the parsed Go project, such as modules, types, and dependencies.
code visible protocol definition
Contributions are welcome! Please open issues or submit pull requests.
GPL-3.0