package singlechecker

import ""

Package singlechecker defines the main function for an analysis driver with only a single analysis. This package makes it easy for a provider of an analysis package to also provide a standalone tool that runs just that analysis.

For example, if is an analysis package, all that is needed to define a standalone tool is a file,, containing:

// The findbadness command runs an analysis.
package main

import (

func main() { singlechecker.Main(findbadness.Analyzer) }


Package Files


func Main

func Main(a *analysis.Analyzer)

Main is the main function for a checker command for a single analysis.

Package singlechecker imports 9 packages (graph).

Version v0.1.8 (latest) | Published Dec 2, 2021 | Platform: linux/amd64 | Updated 3 weeks ago

Tools for package owners.