From 30ea44a60a4bb4d3272aa3a1ce81e1556602dd2c Mon Sep 17 00:00:00 2001 From: Joseph Bane Date: Sun, 17 Oct 2021 17:23:03 -0400 Subject: [PATCH] go-tool: add page (#6998) --- pages/common/go-tool.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 pages/common/go-tool.md diff --git a/pages/common/go-tool.md b/pages/common/go-tool.md new file mode 100644 index 0000000000..2d1bad27d3 --- /dev/null +++ b/pages/common/go-tool.md @@ -0,0 +1,21 @@ +# go tool + +> Run a specific Go tool or command. +> Execute a Go command as a stand-alone binary, typically for debugging. +> More information: . + +- List available tools: + +`go tool` + +- Run the go link tool: + +`go tool link {{path/to/main.o}}` + +- Print the command that would be executed, but do not execute it (similar to `whereis`): + +`go tool -n {{command}} {{arguments}}` + +- Display documentation for a specified tool: + +`go tool {{command}} --help`