commit | 7497e6929e2f37f8493ec4403081bb802e5d2ba0 | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Thu Apr 30 18:41:19 2020 -0400 |
committer | Jonathan Amsterdam <jba@google.com> | Fri May 01 08:56:00 2020 +0000 |
tree | 223c1de3c26027eb2963bb7c79226eb710ea3ed3 | |
parent | 29aee0d0e7754bd6bc3e6da7c08eb6d8ab6c2431 [diff] |
internal/testing/sample: improvements This is the first step towards making sample clearer and less error-prone. - Rename Module and Package to DefaultModule and DefaultPackage, so existing code continues to work. In later CLs, I'll replace most or all calls to these functions. - Define ModuleInfo, Module and Package to take as arguments the most common fields. The Module function does _not_ create a package; it returns a module with no packages. - Most important: define AddPackage, which adds a Package to a Module and correctly updates Module.Directories. - Remove VersionedPackage, since it's clearer to create one directly. - Update a couple of call sites, just to get tests to pass. More updates in a later CL. Change-Id: I46eb94ba897d4f122483b58435107b8782c6044f Reviewed-on: https://team-review.git.corp.google.com/c/golang/discovery/+/733619 CI-Result: Cloud Build <devtools-proctor-result-processor@system.gserviceaccount.com> Reviewed-by: Julie Qiu <julieqiu@google.com>
Pkg.go.dev is a website for discovering and evaluting Go packages and modules.
Pkg.go.dev launched in November 2019, and is currently under active development by the Go team.
Our current goal is to work towards redirecting godoc.org traffic to pkg.go.dev, and ensure that we address users' needs in the process. Read more about our plans for pkg.go.dev in 2020.
We encourage everyone to begin using pkg.go.dev today for all of their needs and file feedback! You can redirect all of your requests from godoc.org to pkg.go.dev, by visiting godoc.org/?redirect=on. Details at Go issue #37099.
If you are having issues with pkg.go.dev, please first check the known issues before following the troubleshooting guide. If that does not give you the information you need, reach out to us.
You can chat with us on the #tools slack channel on the Gophers slack.
If you think you have an issue that needs fixing, or a feature suggestion, then please make sure you follow the steps to file an issue with the right information to allow us to address it.
We would love your help!
Our canonical Git repository is located cat go.googlesource.com/discovery. There is a mirror of the repository at github.com/golang/discovery.
To contribute, please read our contributing guide.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.