mirror of
https://github.com/golang/go
synced 2024-10-04 15:09:59 +00:00
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>
This commit is contained in:
parent
d7549821a0
commit
5a3048bf0e
|
@ -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"
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
//go:build boringcrypto
|
||||
|
||||
package api
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
|
@ -2,9 +2,10 @@
|
|||
// 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"
|
Loading…
Reference in a new issue