From 00ce559b049bbf1e4c592de1436847189860cb16 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Sun, 30 May 2021 15:45:31 +0000 Subject: [PATCH] docs: add comment to explain --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index 4762527..2f2cb1c 100644 --- a/main.go +++ b/main.go @@ -18,12 +18,16 @@ func main() { } func runGoTest() int { + // Run go test + args := []string{"test"} args = append(args, os.Args[1:]...) cmd := exec.Command("go", args...) cmd.Env = os.Environ() + // Output pipe and error pipe + outReader, outWriter := io.Pipe() defer outWriter.Close()