package shift

import "golang.org/x/tools/go/analysis/passes/shift"

Package shift defines an Analyzer that checks for shifts that exceed the width of an integer.

Index

Constants

const Doc = "check for shifts that equal or exceed the width of the integer"

Variables

var Analyzer = &analysis.Analyzer{
	Name:     "shift",
	Doc:      Doc,
	URL:      "https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/shift",
	Requires: []*analysis.Analyzer{inspect.Analyzer},
	Run:      run,
}

Source Files

dead.go shift.go

Version
v0.30.0 (latest)
Published
Feb 10, 2025
Platform
linux/amd64
Imports
10 packages
Last checked
3 hours ago

Tools for package owners.