golang

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *base.Provider

New creates a Go provider using base functionality with Go-specific AST mapping

Types

type Config added in v1.3.0

type Config struct{}

Config implements LanguageConfig for Go

func (*Config) ExpandMatches added in v1.4.0

func (c *Config) ExpandMatches(node *sitter.Node, source string, query core.AgentQuery) []core.CodeMatch

ExpandMatches handles multi-variable declarations in Go

func (*Config) Extensions added in v1.3.0

func (c *Config) Extensions() []string

Extensions supported

func (*Config) ExtractNodeName added in v1.3.0

func (c *Config) ExtractNodeName(node *sitter.Node, source string) string

ExtractNodeName extracts name from Go AST nodes

func (*Config) GetLanguage added in v1.3.0

func (c *Config) GetLanguage() *sitter.Language

GetLanguage returns tree-sitter language for Go

func (*Config) IsExported added in v1.3.0

func (c *Config) IsExported(name string) bool

IsExported checks if identifier is exported (starts with capital letter in Go)

func (*Config) Language added in v1.3.0

func (c *Config) Language() string

Language identifier

func (*Config) MapQueryTypeToNodeTypes added in v1.3.0

func (c *Config) MapQueryTypeToNodeTypes(queryType string) []string

MapQueryTypeToNodeTypes maps query types to Go AST node types

func (*Config) SmartAppend added in v1.5.0

func (c *Config) SmartAppend(source string, target *sitter.Node, content string) (string, bool)

SmartAppend provides heuristics for inserting Go code snippets in sensible locations.

func (*Config) SupportedQueryTypes added in v1.5.0

func (c *Config) SupportedQueryTypes() []string

SupportedQueryTypes returns colloquial query types/aliases for Go

func (*Config) ValidateTypeSpec added in v1.4.0

func (c *Config) ValidateTypeSpec(node *sitter.Node, source, queryType string) bool

ValidateTypeSpec checks if type_spec matches the specific query type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL