tools: golang.org/x/tools/go/analysis/passes/lostcancel Index | Files | Directories

package lostcancel

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

Package lostcancel defines an Analyzer that checks for failure to call a context cancelation function.

Index

Package Files

lostcancel.go

Constants

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

Variables

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

Directories

PathSynopsis
cmd/lostcancelThe lostcancel command applies the golang.org/x/tools/go/analysis/passes/lostcancel analysis to the specified packages of Go source code.

Package lostcancel imports 8 packages (graph) and is imported by 11 packages. Updated 2019-09-20. Refresh now. Tools for package owners.