golang

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package golang holds Go-language detectors. Named "golang" rather than "go" to avoid the awkwardness of a directory literally called "go" inside a Go project where "go" is also the binary and a reserved package name in some tooling. Matches the convention already in use under intelligence/extractor/golang/.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrmDetector

type OrmDetector struct{}

OrmDetector detects Go ORM usage: GORM models/queries/migrations, sqlx connections/queries, and database/sql connections/queries. Mirrors Java GoOrmDetector (regex-only — Java side also defaults to regex).

func NewOrmDetector

func NewOrmDetector() *OrmDetector

func (OrmDetector) DefaultConfidence

func (OrmDetector) DefaultConfidence() model.Confidence

func (OrmDetector) Detect

func (d OrmDetector) Detect(ctx *detector.Context) *detector.Result

func (OrmDetector) Name

func (OrmDetector) Name() string

func (OrmDetector) SupportedLanguages

func (OrmDetector) SupportedLanguages() []string

type StructuresDetector

type StructuresDetector struct{}

StructuresDetector detects Go packages, structs, interfaces, methods, and functions. Mirrors Java GoStructuresDetector — regex-only (Phase 1 of the Java side also defaults to regex).

func NewStructuresDetector

func NewStructuresDetector() *StructuresDetector

func (StructuresDetector) DefaultConfidence

func (StructuresDetector) DefaultConfidence() model.Confidence

func (StructuresDetector) Detect

func (StructuresDetector) Name

func (StructuresDetector) Name() string

func (StructuresDetector) SupportedLanguages

func (StructuresDetector) SupportedLanguages() []string

type WebDetector

type WebDetector struct{}

WebDetector detects Go web endpoints (Gin, Echo, Chi, gorilla/mux, net/http) and middleware. Mirrors Java GoWebDetector.

func NewWebDetector

func NewWebDetector() *WebDetector

func (WebDetector) DefaultConfidence

func (WebDetector) DefaultConfidence() model.Confidence

func (WebDetector) Detect

func (d WebDetector) Detect(ctx *detector.Context) *detector.Result

func (WebDetector) Name

func (WebDetector) Name() string

func (WebDetector) SupportedLanguages

func (WebDetector) SupportedLanguages() []string

Jump to

Keyboard shortcuts

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