From 92558e2eb058841d10aaed956774b5c860a52b4b Mon Sep 17 00:00:00 2001 From: Joshua Shanks Date: Tue, 12 Oct 2021 02:25:38 -0700 Subject: [PATCH] go-run: add package example and fix link (#6827) --- pages/common/go-run.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pages/common/go-run.md b/pages/common/go-run.md index bdab94bec..50db0ffee 100644 --- a/pages/common/go-run.md +++ b/pages/common/go-run.md @@ -1,9 +1,12 @@ # go run -> Compile and run Go code. -> Does not leave a binary on the disk. -> More information: . +> Compile and run Go code without saving a binary. +> More information: . - Run a Go file: `go run {{path/to/file.go}}` + +- Run a main Go package: + +`go run {{path/to/package}}`