commit | 06a795e4788f0895c10695e4d89c01ff135f0463 | [log] [tgz] |
---|---|---|
author | Daniel Martà <mvdan@mvdan.cc> | Sun Feb 04 09:25:55 2018 +0000 |
committer | Robert Griesemer <gri@golang.org> | Tue Feb 13 00:50:30 2018 +0000 |
tree | c8a83d7efc901af1cdba4a32fa25711f963aa0f6 | |
parent | 945872e5ef8b1f73e2f7e23d76a91dec68f8de35 [diff] |
go/types: use consistent receiver names Inconsistent names are quite obvious on the godoc HTML rendering: type Array func NewArray(elem Type, len int64) *Array func (a *Array) Elem() Type func (a *Array) Len() int64 func (t *Array) String() string func (t *Array) Underlying() Type Fix all the String and Underlying methods to be consistent with their types. This makes these two lists of methods less consistent, but that's not visible to the user. This also makes the inconsistent receiver names rule in golint happy. Change-Id: I7c84d6bae1235887233a70d5f7f61a224106e952 Reviewed-on: https://go-review.googlesource.com/91736 Reviewed-by: Robert Griesemer <gri@golang.org>
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://golang.org/dl/.
After downloading a binary release, visit https://golang.org/doc/install or load doc/install.html in your web browser for installation instructions.
If a binary distribution is not available for your combination of operating system and architecture, visit https://golang.org/doc/install/source or load doc/install-source.html in your web browser for source installation instructions.
Go is the work of hundreds of contributors. We appreciate your help!
To contribute, please read the contribution guidelines: https://golang.org/doc/contribute.html
Note that the Go project uses the issue tracker for bug reports and proposals only. See https://golang.org/wiki/Questions for a list of places to ask questions about the Go language.