]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: update documentation: use 'go doc' rather than 'godoc'
authorRobert Griesemer <gri@golang.org>
Fri, 5 Jun 2015 20:14:06 +0000 (13:14 -0700)
committerRobert Griesemer <gri@golang.org>
Fri, 5 Jun 2015 21:33:52 +0000 (21:33 +0000)
Change-Id: I318c1ef75b18d4687f13499ac225dde2d053505e
Reviewed-on: https://go-review.googlesource.com/10776
Reviewed-by: Rob Pike <r@golang.org>
src/cmd/go/alldocs.go
src/cmd/go/fix.go
src/cmd/go/fmt.go
src/cmd/go/help.go
src/cmd/go/test.go

index 3abe5b91bdc3965de18022749f6f0b71f5ab6940..6fe434de86c69ad4c66fecf5055f50b3ecbb1433 100644 (file)
@@ -287,7 +287,7 @@ Usage:
 
 Fix runs the Go fix command on the packages named by the import paths.
 
-For more about fix, see 'godoc fix'.
+For more about fix, see 'go doc cmd/fix'.
 For more about specifying packages, see 'go help packages'.
 
 To run fix with specific options, run 'go tool fix'.
@@ -304,7 +304,7 @@ Usage:
 Fmt runs the command 'gofmt -l -w' on the packages named
 by the import paths.  It prints the names of the files that are modified.
 
-For more about gofmt, see 'godoc gofmt'.
+For more about gofmt, see 'go doc cmd/gofmt'.
 For more about specifying packages, see 'go help packages'.
 
 The -n flag prints commands that would be executed.
@@ -703,7 +703,7 @@ Usage:
 
 Vet runs the Go vet command on the packages named by the import paths.
 
-For more about vet, see 'godoc golang.org/x/tools/cmd/vet'.
+For more about vet, see 'go doc cmd/vet'.
 For more about specifying packages, see 'go help packages'.
 
 To run the vet tool with specific options, run 'go tool vet'.
@@ -721,7 +721,7 @@ Calling between Go and C
 There are two different ways to call between Go and C/C++ code.
 
 The first is the cgo tool, which is part of the Go distribution.  For
-information on how to use it see the cgo documentation (godoc cmd/cgo).
+information on how to use it see the cgo documentation (go doc cmd/cgo).
 
 The second is the SWIG program, which is a general tool for
 interfacing between languages.  For information on SWIG see
@@ -1131,7 +1131,7 @@ control the execution of any test:
        -blockprofilerate n
            Control the detail provided in goroutine blocking profiles by
            calling runtime.SetBlockProfileRate with n.
-           See 'godoc runtime SetBlockProfileRate'.
+           See 'go doc runtime.SetBlockProfileRate'.
            The profiler aims to sample, on average, one blocking event every
            n nanoseconds the program spends blocked.  By default,
            if -test.blockprofile is set without this flag, all blocking events
@@ -1181,7 +1181,7 @@ control the execution of any test:
 
        -memprofilerate n
            Enable more precise (and expensive) memory profiles by setting
-           runtime.MemProfileRate.  See 'godoc runtime MemProfileRate'.
+           runtime.MemProfileRate.  See 'go doc runtime.MemProfileRate'.
            To profile all memory allocations, use -test.memprofilerate=1
            and pass --alloc_space flag to the pprof tool.
 
index 858feab24b77a904450d6d5ac859b91eeeee5e83..94fd22e3c2150ec64d4840d15a262e025968a463 100644 (file)
@@ -11,7 +11,7 @@ var cmdFix = &Command{
        Long: `
 Fix runs the Go fix command on the packages named by the import paths.
 
-For more about fix, see 'godoc fix'.
+For more about fix, see 'go doc cmd/fix'.
 For more about specifying packages, see 'go help packages'.
 
 To run fix with specific options, run 'go tool fix'.
index 1722b9d5688551eec0f6b027cd9a3d91c7270f8e..57c02ad26477f483c4fe3422809076a7a32070d4 100644 (file)
@@ -21,7 +21,7 @@ var cmdFmt = &Command{
 Fmt runs the command 'gofmt -l -w' on the packages named
 by the import paths.  It prints the names of the files that are modified.
 
-For more about gofmt, see 'godoc gofmt'.
+For more about gofmt, see 'go doc cmd/gofmt'.
 For more about specifying packages, see 'go help packages'.
 
 The -n flag prints commands that would be executed.
index 2062f0c4ee085e247ce3637c19ddad31740b197f..4d330f4e91f7e6fda3f6dc86af69c198b0be29a4 100644 (file)
@@ -11,7 +11,7 @@ var helpC = &Command{
 There are two different ways to call between Go and C/C++ code.
 
 The first is the cgo tool, which is part of the Go distribution.  For
-information on how to use it see the cgo documentation (godoc cmd/cgo).
+information on how to use it see the cgo documentation (go doc cmd/cgo).
 
 The second is the SWIG program, which is a general tool for
 interfacing between languages.  For information on SWIG see
index ae9a9fa537cfcf41cb4bb81ec8c5a0a6e4946055..9746bbd3af2671e46ea1c0dff88c87a49ab7862b 100644 (file)
@@ -135,7 +135,7 @@ control the execution of any test:
        -blockprofilerate n
            Control the detail provided in goroutine blocking profiles by
            calling runtime.SetBlockProfileRate with n.
-           See 'godoc runtime SetBlockProfileRate'.
+           See 'go doc runtime.SetBlockProfileRate'.
            The profiler aims to sample, on average, one blocking event every
            n nanoseconds the program spends blocked.  By default,
            if -test.blockprofile is set without this flag, all blocking events
@@ -185,7 +185,7 @@ control the execution of any test:
 
        -memprofilerate n
            Enable more precise (and expensive) memory profiles by setting
-           runtime.MemProfileRate.  See 'godoc runtime MemProfileRate'.
+           runtime.MemProfileRate.  See 'go doc runtime.MemProfileRate'.
            To profile all memory allocations, use -test.memprofilerate=1
            and pass --alloc_space flag to the pprof tool.