1 // Copyright 2024 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 //go:build ignore 6 7 // The unusedwrite command runs the unusedwrite analyzer 8 // on the specified packages. 9 package main 10 11 import ( 12 "golang.org/x/tools/go/analysis/passes/unusedwrite" 13 "golang.org/x/tools/go/analysis/singlechecker" 14 ) 15 16 func main() { singlechecker.Main(unusedwrite.Analyzer) } 17