Skip to content

Commit 3d8fc29

Browse files
committed
Update documentation of go generate
Signed-off-by: Shogo Hida <[email protected]>
1 parent 1c65b69 commit 3d8fc29

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cmd/go/internal/generate/generate.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ Go generate sets several variables when it runs the generator:
9090
$DOLLAR
9191
A dollar sign.
9292
93+
Place GOROOT/bin at the beginning of PATH in 'go generate'.
94+
This causes tests and generators that execute 'go' as a subprocess
95+
to use the same go command as the parent 'go generate' command.
96+
9397
Other than variable substitution and quoted-string evaluation, no
9498
special processing such as "globbing" is performed on the command
9599
line.

0 commit comments

Comments
 (0)