Debian Codegraph @

gopls/internal/analysis/nonewvars/doc.go

raw symbols SCIP
1 // Copyright 2020 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 nonewvars defines an Analyzer that applies suggested fixes
6 // to errors of the type "no new variables on left side of :=".
7 //
8 // # Analyzer nonewvars
9 //
10 // nonewvars: suggested fixes for "no new vars on left side of :="
11 //
12 // This checker provides suggested fixes for type errors of the
13 // type "no new vars on left side of :=". For example:
14 //
15 // z := 1
16 // z := 2
17 //
18 // will turn into
19 //
20 // z := 1
21 // z = 2
22 package nonewvars