package copylock

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

Package copylock defines an Analyzer that checks for locks erroneously passed by value.

Index

Package Files

copylock.go

Constants

const Doc = "" /* 234 byte string literal not displayed */

Variables

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

Package copylock imports 10 packages (graph).

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

.
Tools for package owners.