From c13a79e2d98dde12d41beb27c6cc69c84b6e57f6 Mon Sep 17 00:00:00 2001 From: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com> Date: Sun, 2 Jan 2022 04:30:56 +0000 Subject: [PATCH] go-build: add clarity (#7438) --- pages/common/go-build.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/go-build.md b/pages/common/go-build.md index c0e8c6d78f..4f2c2247d0 100644 --- a/pages/common/go-build.md +++ b/pages/common/go-build.md @@ -3,7 +3,7 @@ > Compile Go sources. > More information: . -- Compile a file: +- Compile a 'package main' file (output will be the filename without extension): `go build {{path/to/main.go}}` @@ -15,6 +15,6 @@ `go build -o {{path/to/binary}} {{path/to/package}}` -- Compile a main package into an executable, with data race detection: +- Compile a main package into an executable, enabling data race detection: `go build -race -o {{path/to/executable}} {{path/to/main/package}}`