Source file src/cmd/vendor/golang.org/x/tools/go/analysis/passes/nilfunc/doc.go

     1  // Copyright 2023 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // Package nilfunc defines an Analyzer that checks for useless
     6  // comparisons against nil.
     7  //
     8  // # Analyzer nilfunc
     9  //
    10  // nilfunc: check for useless comparisons between functions and nil
    11  //
    12  // A useless comparison is one like f == nil as opposed to f() == nil.
    13  package nilfunc
    14  

View as plain text