From: Andrew Gerrand Date: Fri, 7 Aug 2015 03:40:04 +0000 (+1000) Subject: cmd/go: replace code.google.com examples in docs with relevant repos X-Git-Tag: go1.5~1^2~33 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0cd2999c3b7a853f48af1146db427365a09f8b38;p=gostls13.git cmd/go: replace code.google.com examples in docs with relevant repos Change-Id: I625c9df161da2febdca85741c75fc32d4bef420b Reviewed-on: https://go-review.googlesource.com/13344 Reviewed-by: Rob Pike --- diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go index 512ed61cd3..6077d93a43 100644 --- a/src/cmd/go/alldocs.go +++ b/src/cmd/go/alldocs.go @@ -521,9 +521,10 @@ List lists the packages named by the import paths, one per line. The default output shows the package import path: - code.google.com/p/google-api-go-client/books/v1 - code.google.com/p/goauth2/oauth - code.google.com/p/sqlite + bytes + encoding/json + github.com/gorilla/mux + golang.org/x/net/html The -f flag specifies an alternate format for the list, using the syntax of package template. The default output is equivalent to -f @@ -1284,7 +1285,7 @@ By convention, this is arranged by starting each path with a unique prefix that belongs to you. For example, paths used internally at Google all begin with 'google', and paths denoting remote repositories begin with the path to the code, -such as 'code.google.com/p/project'. +such as 'github.com/user/repo'. As a special case, if the package list is a list of .go files from a single directory, the command is applied to a single synthesized diff --git a/src/cmd/go/help.go b/src/cmd/go/help.go index 0bc5ef95fb..5dff2670f1 100644 --- a/src/cmd/go/help.go +++ b/src/cmd/go/help.go @@ -77,7 +77,7 @@ By convention, this is arranged by starting each path with a unique prefix that belongs to you. For example, paths used internally at Google all begin with 'google', and paths denoting remote repositories begin with the path to the code, -such as 'code.google.com/p/project'. +such as 'github.com/user/repo'. As a special case, if the package list is a list of .go files from a single directory, the command is applied to a single synthesized diff --git a/src/cmd/go/list.go b/src/cmd/go/list.go index f59c82eadf..35c7cc4f2a 100644 --- a/src/cmd/go/list.go +++ b/src/cmd/go/list.go @@ -21,9 +21,10 @@ List lists the packages named by the import paths, one per line. The default output shows the package import path: - code.google.com/p/google-api-go-client/books/v1 - code.google.com/p/goauth2/oauth - code.google.com/p/sqlite + bytes + encoding/json + github.com/gorilla/mux + golang.org/x/net/html The -f flag specifies an alternate format for the list, using the syntax of package template. The default output is equivalent to -f