tools: fix vet errors and add missing copyright headers

Change-Id: I6dabbe2a622738b8cc66928fe22a84c27e6e7a32
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/412059
Reviewed-by: Dylan Le <dungtuanle@google.com>
diff --git a/tools/docs2wiki/main.go b/tools/docs2wiki/main.go
index 46a801d..f49ffb4 100644
--- a/tools/docs2wiki/main.go
+++ b/tools/docs2wiki/main.go
@@ -1,3 +1,7 @@
+// Copyright 2022 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
 //go:build !windows
 // +build !windows
 
diff --git a/tools/installtools/main.go b/tools/installtools/main.go
index f33f19e..eaf20a0 100644
--- a/tools/installtools/main.go
+++ b/tools/installtools/main.go
@@ -1,3 +1,7 @@
+// Copyright 2021 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
 // Binary installtools is a helper that installs Go tools extension tests depend on.
 package main
 
diff --git a/tools/installtools/main_test.go b/tools/installtools/main_test.go
index 99e0961..6175c23 100644
--- a/tools/installtools/main_test.go
+++ b/tools/installtools/main_test.go
@@ -1,3 +1,7 @@
+// Copyright 2021 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
 // Binary installtools is a helper that installs Go tools extension tests depend on.
 package main
 
diff --git a/tools/relnotes/relnotes.go b/tools/relnotes/relnotes.go
index 80d92a0..732de08 100644
--- a/tools/relnotes/relnotes.go
+++ b/tools/relnotes/relnotes.go
@@ -278,16 +278,6 @@
 	}
 }
 
-// clPackage returns the package name from the CL's commit message,
-// or "??" if it's formatted unconventionally.
-func clPackage(cl *maintner.GerritCL) string {
-	subj := cl.Subject()
-	if i := strings.Index(subj, ":"); i != -1 {
-		return subj[:i]
-	}
-	return "??"
-}
-
 var relNoteRx = regexp.MustCompile(`RELNOTES?=(.+)`)
 
 func parseRelNote(s string) string {
@@ -314,7 +304,7 @@
 	for changelist := range cls {
 		author, err := fetchCLAuthorName(changelist, *project)
 		if err != nil {
-			log.Fatal("Error fetching Github information for %s: %v\n", changelist.Owner(), err)
+			log.Fatalf("Error fetching Github information for %s: %v\n", changelist.Owner(), err)
 		}
 		usernames = append(usernames, author)
 	}
@@ -390,7 +380,7 @@
 		m[entry] = true
 	}
 	var list []string
-	for key, _ := range m {
+	for key := range m {
 		list = append(list, key)
 	}
 	sort.Strings(list)