]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.21] 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)
committerRuss Cox <rsc@golang.org>
Thu, 17 Aug 2023 01:32:58 +0000 (01:32 +0000)
commited527ecfb2042fb60e1ee45ecef77e904d5ba8b3
tree5e10676cd43c9b7df1ff45df5b304b33c7fdbf79
parentb78e8cc145b7a17e973cc938caea1f227a36cfe1
[release-branch.go1.21] 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 #62071.

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/+/520061
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]