From 0639876c42c3166183ebb93626ef72a89b1a2c08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20Str=C3=BCbing?= Date: Thu, 28 Sep 2017 11:20:26 +0200 Subject: [PATCH] go: add named executable example (#1506) --- pages/common/go.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/go.md b/pages/common/go.md index 68c0d95ada..ed2260814d 100644 --- a/pages/common/go.md +++ b/pages/common/go.md @@ -10,6 +10,10 @@ `go run {{file}}.go` +- Compile a source file into a named executable: + +`go build -o {{executable}} {{file}}.go` + - Compile the package present in the current directory: `go build`