golang.org/x/tools/gopls@v0.15.3/internal/analysis/undeclaredname/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 undeclaredname defines an Analyzer that applies suggested fixes
     6  // to errors of the type "undeclared name: %s".
     7  //
     8  // # Analyzer undeclaredname
     9  //
    10  // undeclaredname: suggested fixes for "undeclared name: <>"
    11  //
    12  // This checker provides suggested fixes for type errors of the
    13  // type "undeclared name: <>". It will either insert a new statement,
    14  // such as:
    15  //
    16  //	<> :=
    17  //
    18  // or a new function declaration, such as:
    19  //
    20  //	func <>(inferred parameters) {
    21  //		panic("implement me!")
    22  //	}
    23  package undeclaredname