A parameterized named type is in one of two states: not yet instantiated, or instantiated. It may be instantiated with any type, including (outer) type parameters. An instantiated parameterized type may needs its type parameters substituted if it is part of an enclosing type (or function) that is instantiated. A Named type has an extra field targs which is set to the type arguments if the type is instantiated. As a result, we don't need a representation for (partially) instantiated parameterized types anymore: the Parameterized type is now unused (but still present in the code). Added a unique id field to TypeParam types so they can be printed with a unique name. This permits the creation of a unique type name for instantiated types which then can be used for hashing that type name. Also, made interfaces as type bounds work in more cases. A handful of places (in testdata/map.go2, map2.go2) are broken (commented out) and need investigation. Change-Id: I137d352b419b2520eadde1b07f823375e0273dab |
||
|---|---|---|
| .github | ||
| api | ||
| doc | ||
| lib/time | ||
| misc | ||
| src | ||
| test | ||
| .gitattributes | ||
| .gitignore | ||
| AUTHORS | ||
| CONTRIBUTING.md | ||
| CONTRIBUTORS | ||
| LICENSE | ||
| PATENTS | ||
| README.md | ||
| SECURITY.md | ||
| favicon.ico | ||
| robots.txt | ||
README.md
The Go Programming Language
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.
Download and Install
Binary Distributions
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.
Install From Source
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.
Contributing
Go is the work of thousands 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.