...

Package shift

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

Overview ▾

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

Index ▾

Package files

dead.go shift.go

Constants

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

Variables

var Analyzer = &analysis.Analyzer{
    Name:     "shift",
    Doc:      Doc,
    Requires: []*analysis.Analyzer{inspect.Analyzer},
    Run:      run,
}