Metadata-Version: 2.4
Name: rbtr-lang-go
Version: 2026.9.0.dev3
Summary: rbtr — Go language plugin
Keywords: code-search,code-index,tree-sitter,static-analysis,semantic-search,developer-tools,go,golang
Author: Alejandro Giacometti
Author-email: Alejandro Giacometti <alejandro.giacometti@gmail.com>
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Go
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Text Processing :: Indexing
Classifier: Typing :: Typed
Requires-Dist: rbtr==2026.9.0.dev3
Requires-Dist: tree-sitter-go
Requires-Python: >=3.13
Project-URL: Homepage, https://github.com/janrito/rbtr
Project-URL: Repository, https://github.com/janrito/rbtr
Project-URL: Documentation, https://github.com/janrito/rbtr/tree/main/packages/rbtr-lang-go#readme
Project-URL: Issues, https://github.com/janrito/rbtr/issues
Project-URL: Changelog, https://github.com/janrito/rbtr/releases
Description-Content-Type: text/markdown

# rbtr-lang-go

Go support for [rbtr]. Optional plugin — install with
`pip install rbtr[go]`.

[rbtr]: https://github.com/janrito/rbtr/tree/main/packages/rbtr#readme

## What it ingests

- **Functions & methods** — `func`; a method with a receiver is scoped to its
  receiver type.
- **Classes** — `struct`, `interface`, and named types.
- **Variables** — package-level `var` / `const` (and grouped blocks).
- **Imports** — `import` declarations (single and grouped), for cross-file
  edges. An import path carries the module prefix `go.mod` declares, which is
  read from the repository and stripped, and it names a package — a directory
  — so the edge reaches every `.go` file in it.

Leading `//` doc comments fold into the symbol's content.

## Chunks produced

```go
func Greet(name string) string { … }   // function "Greet"
type Server struct { … }               // class "Server"
func (s *Server) Start() { … }         // method "Start", scope "Server"
const MaxConns = 100                   // variable "MaxConns"
import "fmt"                           // import, metadata {module: fmt}
```

## Embedded / injected chunks

None. Go does not embed other languages.

## Grammar & dependencies

Uses the `tree-sitter-go` grammar. No dependency on other language plugins.
