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

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,
}

Source Files

copylock.go

Version
v0.1.10
Published
Mar 15, 2022
Platform
js/wasm
Imports
10 packages
Last checked
5 hours ago

Tools for package owners.