nolateconst

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package nolateconst defines an analyzer that forbids package-level const and var declarations that appear after any function or method declaration. All constants and variables should be grouped before functions.

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name: "nolateconst",
	Doc:  "forbids package-level const/var declarations after function declarations",
	Run:  run,
}

Analyzer reports package-level const/var declarations that appear after function declarations.

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