From 3f40f78cabebcb04bbbd03452f2cf7fe3bb3553a Mon Sep 17 00:00:00 2001 From: Ahmed W Date: Wed, 17 Jun 2020 20:15:28 +0000 Subject: [PATCH] README.go2go: add a note about GO2PATH Adds a little note about `GO2PATH` and that it is required for the `go2go` tool. Updates #39617 Change-Id: I9e3cea16a7d7539555180dc065957d6a56f390b9 GitHub-Last-Rev: 2aa6815df7ccb26a9a7728b1556ca1810a884687 GitHub-Pull-Request: golang/go#39657 Reviewed-on: https://go-review.googlesource.com/c/go/+/238498 Reviewed-by: Ian Lance Taylor --- README.go2go.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.go2go.md b/README.go2go.md index 2df3631a31..c649d3e762 100644 --- a/README.go2go.md +++ b/README.go2go.md @@ -14,6 +14,10 @@ There are some sample packages in `cmd/go2go/testdata/go2path/src`. You can see the full documentation for the tool by running `go doc cmd/go2go`. +The `go2go` tool will look for `.go2` files using the environment variable `GO2PATH`. +You can find some useful packages that you might want to experiment with by +setting `GO2PATH=$GOROOT/src/cmd/go2go/testdata/go2path`. + If you find bugs in the updated type checker or in the translation tool, they should be filed in the [standard Go issue tracker](https://golang.org/issue).