aboutsummaryrefslogtreecommitdiff
path: root/src/os/exec/exec.go
diff options
context:
space:
mode:
authorBenny Siegert <bsiegert@gmail.com>2015-04-28 21:32:12 +0200
committerMinux Ma <minux@golang.org>2015-04-29 21:08:07 +0000
commit12034208901e3026ee3039cfb089cb0b12d3d446 (patch)
treee42489cece9c943f4ad4e1820f237496e99b31b6 /src/os/exec/exec.go
parent4b78c9575d3b1190c63b25761dfb86f4d1715c2e (diff)
downloadgo-12034208901e3026ee3039cfb089cb0b12d3d446.tar.gz
go-12034208901e3026ee3039cfb089cb0b12d3d446.zip
os/exec: Document the fact that Cmd cannot be reused.
Update #10305 Change-Id: Iea04758bc200038a1c64457a68100dcdd7f75212 Reviewed-on: https://go-review.googlesource.com/9440 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/os/exec/exec.go')
-rw-r--r--src/os/exec/exec.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/os/exec/exec.go b/src/os/exec/exec.go
index bb0c3acf4f..c515bfc841 100644
--- a/src/os/exec/exec.go
+++ b/src/os/exec/exec.go
@@ -32,6 +32,9 @@ func (e *Error) Error() string {
}
// Cmd represents an external command being prepared or run.
+//
+// A Cmd cannot be reused after calling its Run, Output or CombinedOutput
+// methods.
type Cmd struct {
// Path is the path of the command to run.
//