commit | 8134f3b345feadef101b11e50bbfc2197bf7ad15 | [log] [tgz] |
---|---|---|
author | Tamir Duberstein <tamird@google.com> | Wed Apr 03 13:10:18 2019 -0400 |
committer | Tamir Duberstein <tamird@google.com> | Mon Apr 08 20:02:38 2019 -0400 |
tree | 9dcfd5f040d744cf5a66625ac935f7618d5c3716 | |
parent | 1d542b53fa6e8cc35a43d35511d240a31700d763 [diff] |
[syscall/zx] move error to *zx.Error This is the fifth and final step in transitioning the error implementation on Error from the value type to the pointer. It is safer to implement interfaces on pointer types for the reason evident in this chnage; an interface implemented by a value type is also implicitly implemented by that value's pointer type, which requires type assertions to try both cases. On the other hand, interface implementations by the pointer type do not imply an implementation by the type's value type. Change-Id: I483a599c0acf894a19ddbfd8550955105e285e0d
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 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.