mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-04 21:15:35 +02:00
go*: update documentation links (#17015)
This commit is contained in:
parent
8b4e9fe084
commit
f496e451fb
13 changed files with 13 additions and 13 deletions
|
@ -1,7 +1,7 @@
|
||||||
# go bug
|
# go bug
|
||||||
|
|
||||||
> Report a bug.
|
> Report a bug.
|
||||||
> More information: <https://golang.org/cmd/go/#hdr-Start_a_bug_report>.
|
> More information: <https://pkg.go.dev/cmd/go#hdr-Start_a_bug_report>.
|
||||||
|
|
||||||
- Open a web page to start a bug report:
|
- Open a web page to start a bug report:
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# go build
|
# go build
|
||||||
|
|
||||||
> Compile Go sources.
|
> Compile Go sources.
|
||||||
> More information: <https://golang.org/cmd/go/#hdr-Compile_packages_and_dependencies>.
|
> More information: <https://pkg.go.dev/cmd/go#hdr-Compile_packages_and_dependencies>.
|
||||||
|
|
||||||
- Compile a 'package main' file (output will be the filename without extension):
|
- Compile a 'package main' file (output will be the filename without extension):
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# go clean
|
# go clean
|
||||||
|
|
||||||
> Remove object files and cached files.
|
> Remove object files and cached files.
|
||||||
> More information: <https://golang.org/cmd/go/#hdr-Remove_object_files_and_cached_files>.
|
> More information: <https://pkg.go.dev/cmd/go#hdr-Remove_object_files_and_cached_files>.
|
||||||
|
|
||||||
- Print the remove commands instead of actually removing anything:
|
- Print the remove commands instead of actually removing anything:
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# go doc
|
# go doc
|
||||||
|
|
||||||
> View documentation for a package or symbol.
|
> View documentation for a package or symbol.
|
||||||
> More information: <https://golang.org/cmd/go/#hdr-Show_documentation_for_package_or_symbol>.
|
> More information: <https://pkg.go.dev/cmd/go#hdr-Show_documentation_for_package_or_symbol>.
|
||||||
|
|
||||||
- View documentation for the current package:
|
- View documentation for the current package:
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# go env
|
# go env
|
||||||
|
|
||||||
> Manage environment variables used by the Go toolchain.
|
> Manage environment variables used by the Go toolchain.
|
||||||
> More information: <https://golang.org/cmd/go/#hdr-Print_Go_environment_information>.
|
> More information: <https://pkg.go.dev/cmd/go#hdr-Print_Go_environment_information>.
|
||||||
|
|
||||||
- Show all environment variables:
|
- Show all environment variables:
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# go fix
|
# go fix
|
||||||
|
|
||||||
> Update packages to use new APIs.
|
> Update packages to use new APIs.
|
||||||
> More information: <https://golang.org/cmd/go/#hdr-Update_packages_to_use_new_APIs>.
|
> More information: <https://pkg.go.dev/cmd/go#hdr-Update_packages_to_use_new_APIs>.
|
||||||
|
|
||||||
- Update packages to use new APIs:
|
- Update packages to use new APIs:
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# go generate
|
# go generate
|
||||||
|
|
||||||
> Generate Go files by running commands within source files.
|
> Generate Go files by running commands within source files.
|
||||||
> More information: <https://golang.org/cmd/go/#hdr-Generate_Go_files_by_processing_source>.
|
> More information: <https://pkg.go.dev/cmd/go#hdr-Generate_Go_files_by_processing_source>.
|
||||||
|
|
||||||
- Generate Go files by running commands within source files:
|
- Generate Go files by running commands within source files:
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# go list
|
# go list
|
||||||
|
|
||||||
> List packages or modules.
|
> List packages or modules.
|
||||||
> More information: <https://golang.org/cmd/go/#hdr-List_packages_or_modules>.
|
> More information: <https://pkg.go.dev/cmd/go#hdr-List_packages_or_modules>.
|
||||||
|
|
||||||
- List packages:
|
- List packages:
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# go mod
|
# go mod
|
||||||
|
|
||||||
> Module maintenance.
|
> Module maintenance.
|
||||||
> More information: <https://golang.org/cmd/go/#hdr-Module_maintenance>.
|
> More information: <https://pkg.go.dev/cmd/go#hdr-Module_maintenance>.
|
||||||
|
|
||||||
- Initialize new module in current directory:
|
- Initialize new module in current directory:
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# go version
|
# go version
|
||||||
|
|
||||||
> Display Go version.
|
> Display Go version.
|
||||||
> More information: <https://golang.org/cmd/go/#hdr-Print_Go_version>.
|
> More information: <https://pkg.go.dev/cmd/go#hdr-Print_Go_version>.
|
||||||
|
|
||||||
- Display version:
|
- Display version:
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
> Manage Go source code.
|
> Manage Go source code.
|
||||||
> Some subcommands such as `build` have their own usage documentation.
|
> Some subcommands such as `build` have their own usage documentation.
|
||||||
> More information: <https://golang.org>.
|
> More information: <https://go.dev/>.
|
||||||
|
|
||||||
- Download and install a package, specified by its import path:
|
- Download and install a package, specified by its import path:
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# gofmt
|
# gofmt
|
||||||
|
|
||||||
> Format Go source code.
|
> Format Go source code.
|
||||||
> More information: <https://golang.org/cmd/gofmt/>.
|
> More information: <https://pkg.go.dev/cmd/gofmt>.
|
||||||
|
|
||||||
- Format a file and display the result to the console:
|
- Format a file and display the result to the console:
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# goimports
|
# goimports
|
||||||
|
|
||||||
> Updates Go import lines, adding missing ones and removing unreferenced ones.
|
> Updates Go import lines, adding missing ones and removing unreferenced ones.
|
||||||
> More information: <https://godoc.org/golang.org/x/tools/cmd/goimports>.
|
> More information: <https://pkg.go.dev/golang.org/x/tools/cmd/goimports>.
|
||||||
|
|
||||||
- Display the completed import source file:
|
- Display the completed import source file:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue