commit | c3728b75024667927f690373cea324dd26777414 | [log] [tgz] |
---|---|---|
author | cuiweixie <cuiweixie@gmail.com> | Tue Aug 30 01:30:53 2022 +0800 |
committer | Gopher Robot <gobot@golang.org> | Mon Sep 26 16:36:07 2022 +0000 |
tree | 94819edc4baa5053988838ce3506a5d2ead3b813 | |
parent | deaec39323aced382a12ed0360fad03ad1dbb906 [diff] |
reflect: simplify Value.Comparable using Type.Comparable to simplify the Value.Comparable, and return true directly when exit the for loop of kind == array and elements type is interface or array or struct. Change-Id: Ib0b06a70642ba24c9215c69e7d619960fbeeed90 Reviewed-on: https://go-review.googlesource.com/c/go/+/426457 Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com> Run-TryBot: xie cui <523516579@qq.com>
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 3.0 Attributions license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Official binary distributions are available at https://go.dev/dl/.
After downloading a binary release, visit https://go.dev/doc/install for installation instructions.
If a binary distribution is not available for your combination of operating system and architecture, visit https://go.dev/doc/install/source for source installation instructions.
Go is the work of thousands of contributors. We appreciate your help!
To contribute, please read the contribution guidelines at https://go.dev/doc/contribute.
Note that the Go project uses the issue tracker for bug reports and proposals only. See https://go.dev/wiki/Questions for a list of places to ask questions about the Go language.