libclang is a Go library, providing a means to parse a compilation unit with libclang
,
and walk the unit's Cursors.
See the Go docs for the package.
There are some minimal examples in the _example
directory.
The clang
dev package (with header files) needs to be installed.
# rpm-based distros
[sudo] dnf install clang-devel
# apt-based distros
[sudo] apt install clang-dev
- install
goimports
if not already installed - install
golangci-lint
if not already installed - install the
pre-commit
application if not already installed - install pre-commit hook in this repo's workspace
pre-commit install