Go indexer plugin for CodeMap
Project description
codemap-go
A Go indexer for CodeMap, shipped as an independent PyPI package.
What it captures
Backed by tree-sitter-go:
| AST node | Symbol kind |
|---|---|
function_declaration |
function |
method_declaration |
method (attached to its receiver type) |
type_declaration containing struct_type |
class (with extra.go_kind=struct) |
type_declaration containing interface_type |
class (with extra.go_kind=interface) |
type_declaration (other) |
class (with extra.go_kind=type) |
const_declaration (top-level) |
variable (with extra.go_kind=const) |
var_declaration (top-level) |
variable |
package_clause is captured as extra.package on every symbol-producing
type so a downstream bridge can use it for cross-file resolution.
Method receivers — both func (u User) M() and func (u *User) M() —
attach the method to its User type, producing
scip-go . . . main.go/User#Login()..
SymbolID encoding
scip-go . . . pkg/user/user.go/User#Login().
└──────┘ └─────────────────────┘ └────┘ └─────┘
scheme file path type method
Install
pip install "git+https://github.com/qxbyte/codemap.git#subdirectory=plugins/codemap-go"
After install, codemap doctor lists go alongside the other indexers
on identical terms (ADR-004 + ADR-L001).
Limits
- No
importsedges. Top-level imports are recorded for the package table but not turned into edges. - No generic constraints / type-parameter descriptors.
- Method bodies are not traversed for call edges yet.
- Anonymous structs and function-typed fields are skipped.
License
MIT.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file codemap_go-0.1.0a1.tar.gz.
File metadata
- Download URL: codemap_go-0.1.0a1.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18ebc2877a2dd20f5b8228222e40bab31158fc7f4086416eecaebc7e057e9676
|
|
| MD5 |
35e35f50c178128ff0ccd5666e897962
|
|
| BLAKE2b-256 |
2d2113e1ed4571eda4786bfd8e99b67a6086b853df831f515690500c67f7e271
|
File details
Details for the file codemap_go-0.1.0a1-py3-none-any.whl.
File metadata
- Download URL: codemap_go-0.1.0a1-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
852bb869545de51c0f506616e58cde2b13dc53e755a81b782016e6f74c6a0bf6
|
|
| MD5 |
9f01595548ac5323089d2e890674b228
|
|
| BLAKE2b-256 |
f12816101a7b57d7ace11fa823364e5d0306e509485640921512ea27bca5444c
|