mirror of https://github.com/golang/go.git
cmd/go2go: point to testdata/go2path in package docs
Change-Id: I94857bb943503d1107b814e5111ccd6512c4a477
This commit is contained in:
parent
0b55a72ba3
commit
01b5212797
|
|
@ -20,9 +20,14 @@
|
|||
//
|
||||
// Non-local imported packages will be first looked up using the GO2PATH
|
||||
// environment variable, which should point to a GOPATH-like directory.
|
||||
// For example, import "x" will first look for $GO2PATH/src/x.
|
||||
// If not found in GO2PATH, imports will be looked up in the usual way.
|
||||
// If an import includes .go2 files, it will be translated into .go files.
|
||||
// For example, import "x" will first look for GO2PATHDIR/src/x,
|
||||
// for each colon-separated component in GO2PATH. If not found in GO2PATH,
|
||||
// imports will be looked up in the usual way. If an import includes
|
||||
// .go2 files, they will be translated into .go files.
|
||||
//
|
||||
// There is a sample GO2PATH in cmd/go2go/testdata/go2path. It provides
|
||||
// several packages that serve as examples of using generics, and may
|
||||
// be useful in experimenting with your own generic code.
|
||||
//
|
||||
// Translation into standard Go requires generating Go code with mangled names.
|
||||
// The mangled names will always include Odia (Oriya) digits, such as ୦ and ୮.
|
||||
|
|
|
|||
Loading…
Reference in New Issue