diff options
| author | Russ Cox <rsc@golang.org> | 2023-08-16 11:18:02 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2023-08-16 16:02:26 +0000 |
| commit | 5a3048bf0eefd2f99382a980f975d6a1fb6b921a (patch) | |
| tree | 5c0d595ee97702478cd96a462613a6ed37af414d /src/cmd/api/api_test.go | |
| parent | d7549821a0136593e9872e9c50c45c8ce038704b (diff) | |
| download | go-5a3048bf0eefd2f99382a980f975d6a1fb6b921a.tar.xz | |
cmd/api: rename api.go to main_test.go
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.
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>
Diffstat (limited to 'src/cmd/api/api_test.go')
| -rw-r--r-- | src/cmd/api/api_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/api/api_test.go b/src/cmd/api/api_test.go index a5ac49ce2d..910e046f12 100644 --- a/src/cmd/api/api_test.go +++ b/src/cmd/api/api_test.go @@ -2,7 +2,7 @@ // 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" |
