Skip to main content

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 codemap-go

After install, codemap doctor lists go alongside the other indexers on identical terms (ADR-004 + ADR-L001).

Limits

  • No imports edges. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codemap_go-0.1.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codemap_go-0.1.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file codemap_go-0.1.0.tar.gz.

File metadata

  • Download URL: codemap_go-0.1.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for codemap_go-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5262a6aae457769ca01ffb8ba56e96ea5ccb03edc6d6032f6e3e7f2a598ad88c
MD5 c98c361f65f7366a7e0605d6f1dc1c01
BLAKE2b-256 d30f4e31518d0b31fbff6d4a7d3d4bb4a6b1e4e957e36bf1de04d7a3198992ae

See more details on using hashes here.

Provenance

The following attestation bundles were made for codemap_go-0.1.0.tar.gz:

Publisher: publish.yml on qxbyte/codemap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file codemap_go-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: codemap_go-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for codemap_go-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c46d496605ac7df70b45636b710288d30b302ec68c63d8f337c54602e291f9b9
MD5 845f06f35dd34286f4a1c7ed243ab843
BLAKE2b-256 7d2f6aec78a8949707690ea9f5cc068024538d5f02d17aabbc2e6ebbcc422a90

See more details on using hashes here.

Provenance

The following attestation bundles were made for codemap_go-0.1.0-py3-none-any.whl:

Publisher: publish.yml on qxbyte/codemap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page