gotypes

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 22 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package gotypes is the go/types rule family: rules that resolve what a Go name refers to, which the syntax-only go/* family cannot. The analyzers run under `go vet`, with the formwork binary as the vettool, so the go command builds every package's type information and caches the results. Design: docs/specs/2026-11-19-go-types-rule-family-design.md.

Index

Constants

View Source
const VettoolEnv = "FORMWORK_VETTOOL"

VettoolEnv names the variable formwork sets when it runs `go vet` with itself as the vettool. main hands control to the analyzers when it is "1".

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name: "formwork",
	Doc:  "formwork go/types rules; the -plan flag names the rule this run evaluates",
	Run:  run,
}

Analyzer is the single analyzer the vettool runs. Its plan names the analyzer a rule uses and that analyzer's params.

Functions

func Main

func Main()

Main runs the analyzers as a `go vet` vettool and does not return.

Types

This section is empty.

Jump to

Keyboard shortcuts

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