maincheck

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name:             "maincheck",
	Doc:              "Check that main function is located in a main.go file",
	Run:              run,
	RunDespiteErrors: true,
}

Analyzer contains an analyzer that makes sure that go target is always a func literal that calls defer log.HandlePanic as first statement.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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