]> Cypherpunks.ru repositories - gostls13.git/commit
[release-branch.go1.20] cmd/api: rename api.go to main_test.go
authorRuss Cox <rsc@golang.org>
Wed, 16 Aug 2023 15:18:02 +0000 (11:18 -0400)
committerGopher Robot <gobot@golang.org>
Thu, 17 Aug 2023 20:58:04 +0000 (20:58 +0000)
commit14e3c7338d9914295a25ba6b741063083b6b54db
tree55bf1720474dd03ae2c7aab269dd52a172fdd916
parent095cfba86be8db249ada8605fa31764fd4ce9241
[release-branch.go1.20] 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.
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>
src/cmd/api/api_test.go
src/cmd/api/boring_test.go
src/cmd/api/main_test.go [moved from src/cmd/api/api.go with 99% similarity]