]> Cypherpunks.ru repositories - gostls13.git/commit
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>
Wed, 16 Aug 2023 16:02:26 +0000 (16:02 +0000)
commit5a3048bf0eefd2f99382a980f975d6a1fb6b921a
tree5c0d595ee97702478cd96a462613a6ed37af414d
parentd7549821a0136593e9872e9c50c45c8ce038704b
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>
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]