go*: add a note (#22744)

* chore: Notes for go pages

* Update pages/common/go-fmt.md

Co-authored-by: Ivan Baluta <ivanbaluta.dev@gmail.com>

* Update pages/common/go-list.md

Co-authored-by: Ivan Baluta <ivanbaluta.dev@gmail.com>

* Update pages/common/go-test.md

Co-authored-by: Ivan Baluta <ivanbaluta.dev@gmail.com>

---------

Co-authored-by: Ivan Baluta <ivanbaluta.dev@gmail.com>
This commit is contained in:
Harshavardhan
2026-06-07 14:52:57 +05:30
committed by GitHub
parent 1b5488a978
commit 73758295bb
3 changed files with 4 additions and 1 deletions
+1
View File
@@ -1,6 +1,7 @@
# go fmt
> Format Go source files, printing the changed filenames.
> Note: `./...` is a Go package pattern understood by Go tooling. It matches the current package and all packages recursively under the current directory.
> More information: <https://pkg.go.dev/cmd/go#hdr-Gofmt__reformat__package_sources>.
- Format Go source files in the current directory:
+1
View File
@@ -1,6 +1,7 @@
# go list
> List packages or modules.
> Note: `./...` is a Go package pattern understood by Go tooling. It matches the current package and all packages recursively under the current directory.
> More information: <https://pkg.go.dev/cmd/go#hdr-List_packages_or_modules>.
- List packages:
+2 -1
View File
@@ -1,6 +1,7 @@
# go test
> Test Go packages (files have to end with `_test.go`).
> Note: `./...` is a Go package pattern understood by Go tooling. It matches the current package and all packages recursively under the current directory.
> More information: <https://pkg.go.dev/cmd/go#hdr-Testing_flags>.
- Test the package found in the current directory:
@@ -11,7 +12,7 @@
`go test -v`
- Test the packages in the current directory and all subdirectories (note the `...`):
- Test the packages in the current directory and all subdirectories:
`go test -v ./...`