commit | ec07732e8543994d36df884c79584c9427fee034 | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Mon May 04 09:29:56 2020 -0400 |
committer | Jonathan Amsterdam <jba@google.com> | Mon May 04 17:26:32 2020 +0000 |
tree | 6ea2f7811f03834028c1ffcf320acc83453d2b25 | |
parent | bfc2500d6fb4bf8157d772ed274ce9caadba0d22 [diff] |
internal/postgres: make GeneratePathTokens deterministic Sort the return value of GeneratePathTokens so it always returns the same output for the same input. I wanted to compare tsv_search_tokens values to see if they were different, but that wasn't possible because GeneratePathTokens returns a different order of tokens each time. Change-Id: I9f8832126d8059cfd6e6d5a21af0b4aa2c12b1fc Reviewed-on: https://team-review.git.corp.google.com/c/golang/discovery/+/736820 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.