This makes cmd/api no longer an importable package.
In CL 453258 I forgot that there was no direct prohibition
on importing packages from cmd - we just rely on the
fact that cmd/* is all package main and everything else
is cmd/internal.
Fixes #62069.
Fixes #62070.
Change-Id: Ifed738d333b40663f85eca8f83025fcea5df89a9
Reviewed-on: https://go-review.googlesource.com/c/go/+/520038
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-on: https://go-review.googlesource.com/c/go/+/520060
Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package api
+package main
import (
"flag"
//go:build boringcrypto
-package api
+package main
import (
"fmt"
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// Package api computes the exported API of a set of Go packages.
+// This package computes the exported API of a set of Go packages.
// It is only a test, not a command, nor a usefully importable package.
-package api
+
+package main
import (
"bufio"