<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go/src/errors/errors.go, branch main</title>
<subtitle>Fork of Go programming language with my patches.</subtitle>
<id>http://git.kilabit.info/go/atom?h=main</id>
<link rel='self' href='http://git.kilabit.info/go/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/'/>
<updated>2025-09-30T17:22:08Z</updated>
<entry>
<title>errors: add AsType</title>
<updated>2025-09-30T17:22:08Z</updated>
<author>
<name>Julien Cretel</name>
<email>jub0bsinthecloud@gmail.com</email>
</author>
<published>2025-09-29T16:57:53Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=a846bb0aa523c8781248161b63bc2ab6a245cec1'/>
<id>urn:sha1:a846bb0aa523c8781248161b63bc2ab6a245cec1</id>
<content type='text'>
Fixes #51945

Change-Id: Icda169782e796578eba728938134a85b5827d3b6
GitHub-Last-Rev: c6ff335ee1ffb6b7975141795a4632a55247299d
GitHub-Pull-Request: golang/go#75621
Reviewed-on: https://go-review.googlesource.com/c/go/+/707235
Reviewed-by: Carlos Amedee &lt;carlos@golang.org&gt;
Reviewed-by: Damien Neil &lt;dneil@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Sean Liao &lt;sean@liao.dev&gt;
</content>
</entry>
<entry>
<title>errors: reference Go 1.13 article about errors</title>
<updated>2024-09-30T17:37:38Z</updated>
<author>
<name>Matt T. Proud</name>
<email>matt.proud@gmail.com</email>
</author>
<published>2024-09-28T14:25:38Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=1d0f5c478ac176fa99d0f3d6bd540e5fb422187a'/>
<id>urn:sha1:1d0f5c478ac176fa99d0f3d6bd540e5fb422187a</id>
<content type='text'>
This commit amends package errors' documentation to include a reference
to the https://go.dev/blog/go1.13-errors blog article. The motivation
is multi-fold, but chiefly the article includes good information about
error philosophy (e.g., when to wrap), and developers who have come to
Go in the intervening five years are likely not have seen this article
at all given the nature of blog publishing and post fanfare. The
material deserves a promotion in visibility.

Change-Id: Ia6f8307784521dd59de3a3d638dbc0a7fcd445e6
GitHub-Last-Rev: 20980dd5070cde495ebb08386ae7b4cd78ccc612
GitHub-Pull-Request: golang/go#69698
Reviewed-on: https://go-review.googlesource.com/c/go/+/616341
Reviewed-by: Jonathan Amsterdam &lt;jba@google.com&gt;
Reviewed-by: Damien Neil &lt;dneil@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Michael Knyszek &lt;mknyszek@google.com&gt;
</content>
</entry>
<entry>
<title>errors: add available godoc link</title>
<updated>2023-11-02T19:45:41Z</updated>
<author>
<name>cui fliter</name>
<email>imcusg@gmail.com</email>
</author>
<published>2023-10-13T06:59:10Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=925a4d93dcc958ee9250bcc213baa0fc7bd892ae'/>
<id>urn:sha1:925a4d93dcc958ee9250bcc213baa0fc7bd892ae</id>
<content type='text'>
Change-Id: Ie86493ebad3c3d7ea914754451985d7ee3e8e270
Reviewed-on: https://go-review.googlesource.com/c/go/+/535080
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
Run-TryBot: shuang cui &lt;imcusg@gmail.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Cherry Mui &lt;cherryyz@google.com&gt;
Reviewed-by: qiulaidongfeng &lt;2645477756@qq.com&gt;
</content>
</entry>
<entry>
<title>errors: add godoc links</title>
<updated>2023-05-25T13:20:16Z</updated>
<author>
<name>Olivier Mengué</name>
<email>olivier.mengue@gmail.com</email>
</author>
<published>2023-05-23T14:51:04Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=fc5c590d8dac4edb7b87b6c943948033a3920266'/>
<id>urn:sha1:fc5c590d8dac4edb7b87b6c943948033a3920266</id>
<content type='text'>
Change-Id: I766e656e6b967290d692313ea1391878fc21c92d
Reviewed-on: https://go-review.googlesource.com/c/go/+/497375
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Run-TryBot: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: Bryan Mills &lt;bcmills@google.com&gt;
</content>
</entry>
<entry>
<title>errors: add ErrUnsupported</title>
<updated>2023-03-11T05:07:02Z</updated>
<author>
<name>Andy Pan</name>
<email>panjf2000@gmail.com</email>
</author>
<published>2023-03-02T03:57:24Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=70f98a251efdbfd619c4ff466a43da299ad04752'/>
<id>urn:sha1:70f98a251efdbfd619c4ff466a43da299ad04752</id>
<content type='text'>
Fixes #41198

Change-Id: Ib33a11d0eb311f8e2b81de24d11df49e00b2fc81
Reviewed-on: https://go-review.googlesource.com/c/go/+/473935
Run-TryBot: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: Bryan Mills &lt;bcmills@google.com&gt;
Run-TryBot: Andy Pan &lt;panjf2000@gmail.com&gt;
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
</content>
</entry>
<entry>
<title>errors, fmt: add support for wrapping multiple errors</title>
<updated>2022-09-29T18:40:40Z</updated>
<author>
<name>Damien Neil</name>
<email>dneil@google.com</email>
</author>
<published>2022-09-22T17:43:26Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=4a0a2b33dfa3c99250efa222439f2c27d6780e4a'/>
<id>urn:sha1:4a0a2b33dfa3c99250efa222439f2c27d6780e4a</id>
<content type='text'>
An error which implements an "Unwrap() []error" method wraps all the
non-nil errors in the returned []error.

We replace the concept of the "error chain" inspected by errors.Is
and errors.As with the "error tree". Is and As perform a pre-order,
depth-first traversal of an error's tree. As returns the first
matching result, if any.

The new errors.Join function returns an error wrapping a list of errors.

The fmt.Errorf function now supports multiple instances of the %w verb.

For #53435.

Change-Id: Ib7402e70b68e28af8f201d2b66bd8e87ccfb5283
Reviewed-on: https://go-review.googlesource.com/c/go/+/432898
Reviewed-by: Cherry Mui &lt;cherryyz@google.com&gt;
Reviewed-by: Rob Pike &lt;r@golang.org&gt;
Run-TryBot: Damien Neil &lt;dneil@google.com&gt;
Reviewed-by: Joseph Tsai &lt;joetsai@digital-static.net&gt;
</content>
</entry>
<entry>
<title>all: update references to symbols moved from os to io/fs</title>
<updated>2020-10-20T02:32:42Z</updated>
<author>
<name>Russ Cox</name>
<email>rsc@golang.org</email>
</author>
<published>2020-07-07T17:49:21Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=7bb721b9384bdd196befeaed593b185f7f2a5589'/>
<id>urn:sha1:7bb721b9384bdd196befeaed593b185f7f2a5589</id>
<content type='text'>
The old os references are still valid, but update our code
to reflect best practices and get used to the new locations.

Code compiled with the bootstrap toolchain
(cmd/asm, cmd/dist, cmd/compile, debug/elf)
must remain Go 1.4-compatible and is excluded.

For #41190.

Change-Id: I8f9526977867c10a221e2f392f78d7dec073f1bd
Reviewed-on: https://go-review.googlesource.com/c/go/+/243907
Trust: Russ Cox &lt;rsc@golang.org&gt;
Run-TryBot: Russ Cox &lt;rsc@golang.org&gt;
TryBot-Result: Go Bot &lt;gobot@golang.org&gt;
Reviewed-by: Rob Pike &lt;r@golang.org&gt;
</content>
</entry>
<entry>
<title>errors: fix wrong code in package doc</title>
<updated>2019-09-04T17:08:55Z</updated>
<author>
<name>Jonathan Amsterdam</name>
<email>jba@google.com</email>
</author>
<published>2019-09-04T17:01:16Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=d9a3d902ec139c95d8dc1b69977783fb8134b552'/>
<id>urn:sha1:d9a3d902ec139c95d8dc1b69977783fb8134b552</id>
<content type='text'>
You can't call Unwrap on the return value of fmt.Errorf, but
you can pass the result to errors.Unwrap.

Also, move the description of the Unwrap function up so the
example makes sense.

Fixes #34061.

Change-Id: Ica07c44665c5e65deea4aa6a146fc543a5a0a99d
Reviewed-on: https://go-review.googlesource.com/c/go/+/193298
Run-TryBot: Jonathan Amsterdam &lt;jba@google.com&gt;
Reviewed-by: Katie Hockman &lt;katie@golang.org&gt;
</content>
</entry>
<entry>
<title>errors: improve doc</title>
<updated>2019-08-06T11:13:05Z</updated>
<author>
<name>Jonathan Amsterdam</name>
<email>jba@google.com</email>
</author>
<published>2019-08-02T10:43:20Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=546ea78efa159680dde0df42f1f2091ccafef4df'/>
<id>urn:sha1:546ea78efa159680dde0df42f1f2091ccafef4df</id>
<content type='text'>
Explain wrapping and how to use Is and As in the package doc.

Explain "chain" in Is and As.

Updates #33364.

Change-Id: Ic06362106dbd129e33dd47e63176ee5355492086
Reviewed-on: https://go-review.googlesource.com/c/go/+/188737
Reviewed-by: Rob Pike &lt;r@golang.org&gt;
</content>
</entry>
<entry>
<title>errors, fmt: revert rejected changes for Go 1.13</title>
<updated>2019-05-15T19:53:15Z</updated>
<author>
<name>Damien Neil</name>
<email>dneil@google.com</email>
</author>
<published>2019-05-13T21:51:55Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=3e2c522d5c712fa2b1d18a101272abefc7dcb074'/>
<id>urn:sha1:3e2c522d5c712fa2b1d18a101272abefc7dcb074</id>
<content type='text'>
Reverts the following changes:

  https://go.googlesource.com/go/+/1f90d081391d4f5911960fd28d81d7ea5e554a8f
  https://go.googlesource.com/go/+/8bf18b56a47a98b9dd2fa03beb358312237a8c76
  https://go.googlesource.com/go/+/5402854c3557f87fa2741a52ffc15dfb1ef333cc
  https://go.googlesource.com/go/+/37f84817247d3b8e687a701ccb0d6bc7ffe3cb78
  https://go.googlesource.com/go/+/6be6f114e0d483a233101a67c9644cd72bd3ae7a

Partially reverts the followinng change, removing the errors.Opaque
function and the errors.Wrapper type definition:

  https://go.googlesource.com/go/+/62f5e8156ef56fa61e6af56f4ccc633bde1a9120

Updates documentation referencing the Wrapper type.

Change-Id: Ia622883e39cafb06809853e3fd90b21441124534
Reviewed-on: https://go-review.googlesource.com/c/go/+/176997
Run-TryBot: Damien Neil &lt;dneil@google.com&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
Reviewed-by: Marcel van Lohuizen &lt;mpvl@golang.org&gt;
</content>
</entry>
</feed>
