golang

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package golang is the Go LanguageProvider. It backs its analysis with the stdlib go/ast parser (no CGO, no external dependency — see ADR 0001) and is codefit's self-audit bootstrap: codefit audits its own Go code from day one.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct{}

Provider implements providers.LanguageProvider for Go.

func New

func New() *Provider

New returns a Go language provider.

func (*Provider) AnalyzePractices

func (*Provider) AnalyzePractices(src providers.SourceFile) ([]findings.Finding, error)

AnalyzePractices runs the Go best-practice checks.

func (*Provider) AnalyzeSecurity

func (*Provider) AnalyzeSecurity(src providers.SourceFile) ([]findings.Finding, error)

AnalyzeSecurity runs the static (go/ast) security checks for Go.

func (*Provider) AnalyzeSurface

func (*Provider) AnalyzeSurface(src providers.SourceFile) ([]findings.SurfaceItem, error)

AnalyzeSurface maps the auditable structural surface of a Go file.

func (*Provider) DefaultPathCriticality

func (*Provider) DefaultPathCriticality() config.PathCriticality

func (*Provider) FileExtensions

func (*Provider) FileExtensions() []string

func (*Provider) Frameworks

func (*Provider) Frameworks() []string

func (*Provider) Language

func (*Provider) Language() string

Jump to

Keyboard shortcuts

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