Change-Id: I1c9f91e983fb26b3e46c65513a4f14508774e543
Reviewed-on: https://go-review.googlesource.com/c/go/+/428291
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
import (
"bufio"
- "bytes"
"cmd/internal/archive"
"fmt"
"internal/testenv"
"os"
"os/exec"
"path/filepath"
+ "strings"
"testing"
"time"
)
ar.a.File().Close()
// Now check it.
ar = openArchive(name, os.O_RDONLY, []string{helloFile.name})
- var buf bytes.Buffer
+ var buf strings.Builder
stdout = &buf
verbose = true
defer func() {
ar.a.File().Close()
// Now print it.
- var buf bytes.Buffer
+ var buf strings.Builder
stdout = &buf
verbose = true
defer func() {