docs: add comment to explain

main
sudo pacman -Syu 2021-05-30 15:45:31 +00:00
parent ce20881e9d
commit 00ce559b04
1 changed files with 4 additions and 0 deletions

View File

@ -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()