golang.org/x/tools/gopls@v0.15.3/internal/analysis/noresultvalues/doc.go (about)

     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 noresultvalues defines an Analyzer that applies suggested fixes
     6  // to errors of the type "no result values expected".
     7  //
     8  // # Analyzer noresultvalues
     9  //
    10  // noresultvalues: suggested fixes for unexpected return values
    11  //
    12  // This checker provides suggested fixes for type errors of the
    13  // type "no result values expected" or "too many return values".
    14  // For example:
    15  //
    16  //	func z() { return nil }
    17  //
    18  // will turn into
    19  //
    20  //	func z() { return }
    21  package noresultvalues