<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go/src/errors, branch fix-runtime-test-GOMAXPROCS</title>
<subtitle>Fork of Go programming language with my patches.</subtitle>
<id>http://git.kilabit.info/go/atom?h=fix-runtime-test-GOMAXPROCS</id>
<link rel='self' href='http://git.kilabit.info/go/atom?h=fix-runtime-test-GOMAXPROCS'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/'/>
<updated>2025-05-27T15:37:09Z</updated>
<entry>
<title>errors: add joinError Unwrap example</title>
<updated>2025-05-27T15:37:09Z</updated>
<author>
<name>jiahua wang</name>
<email>wjh180909@gmail.com</email>
</author>
<published>2025-05-20T05:40:18Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=ed70477909c97f86f8d73bee2d8680b6788acec7'/>
<id>urn:sha1:ed70477909c97f86f8d73bee2d8680b6788acec7</id>
<content type='text'>
Change-Id: Id7489247e9bdd413f82fdf5a70197856c47abfb5
Reviewed-on: https://go-review.googlesource.com/c/go/+/674336
Reviewed-by: Michael Knyszek &lt;mknyszek@google.com&gt;
Reviewed-by: Sean Liao &lt;sean@liao.dev&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: David Chase &lt;drchase@google.com&gt;
Auto-Submit: Sean Liao &lt;sean@liao.dev&gt;
</content>
</entry>
<entry>
<title>errors: optimize errors.Join for single unwrappable errors</title>
<updated>2025-04-14T13:49:08Z</updated>
<author>
<name>dmathieu</name>
<email>42@dmathieu.com</email>
</author>
<published>2024-12-11T09:55:27Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=80bff42fdd0380c09f4df35c4baacb9cfdae5aae'/>
<id>urn:sha1:80bff42fdd0380c09f4df35c4baacb9cfdae5aae</id>
<content type='text'>
Change-Id: I10bbb782ca7234cda8c82353f2255eec5be588c9
GitHub-Last-Rev: e5ad8fdb802e56bb36c41b4982ed27c1e0809af8
GitHub-Pull-Request: golang/go#70770
Reviewed-on: https://go-review.googlesource.com/c/go/+/635115
Auto-Submit: Sean Liao &lt;sean@liao.dev&gt;
Reviewed-by: Michael Pratt &lt;mpratt@google.com&gt;
Reviewed-by: Sean Liao &lt;sean@liao.dev&gt;
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&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: change interface{} to any in comment</title>
<updated>2024-05-24T17:13:04Z</updated>
<author>
<name>kenshi kamata</name>
<email>kenshi.kamata@gmail.com</email>
</author>
<published>2024-05-22T08:19:56Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=85115da5d3351c4300337579eafe726700f3b587'/>
<id>urn:sha1:85115da5d3351c4300337579eafe726700f3b587</id>
<content type='text'>
Change-Id: Ibf28c4b3026019427a2485230e14929ed80a1727
Reviewed-on: https://go-review.googlesource.com/c/go/+/587255
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: Carlos Amedee &lt;carlos@golang.org&gt;
</content>
</entry>
<entry>
<title>errors: return early for Is(nil, ...)</title>
<updated>2024-04-03T22:49:49Z</updated>
<author>
<name>Tobias Klauser</name>
<email>tklauser@distanz.ch</email>
</author>
<published>2024-04-03T09:50:36Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=af43932c20d5b59cdffca45406754dbccbb46dfa'/>
<id>urn:sha1:af43932c20d5b59cdffca45406754dbccbb46dfa</id>
<content type='text'>
If err is nil it wouldn't match any given target error except for nil,
so we can return early to speed up cases where Is is used without a
preceding err != nil check.

Change-Id: Ib33cff50453fe070f06871ce8074694c81ab787b
Reviewed-on: https://go-review.googlesource.com/c/go/+/576015
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Auto-Submit: Tobias Klauser &lt;tobias.klauser@gmail.com&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
</content>
</entry>
<entry>
<title>errors: clarify references to Unwrap in doc</title>
<updated>2023-11-21T22:04:29Z</updated>
<author>
<name>Olivier Mengué</name>
<email>olivier.mengue@gmail.com</email>
</author>
<published>2023-10-26T20:18:33Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=ef7b713fefdcfef83101eda880015dded5fadb98'/>
<id>urn:sha1:ef7b713fefdcfef83101eda880015dded5fadb98</id>
<content type='text'>
CL 535080 incorrectly links the unclear mention of Unwrap to the func
Unwrap in doc for errors.Is and errors.As

Instead we clarify that "Unwrap" is a reference
to the "Unwrap() error" or "Unwrap() []error" methods, not to the
"Unwrap(error) error" function which is also available in the package.

Change-Id: I8314993932e1e7a2dc77400f74d81f3a8aa891de
Reviewed-on: https://go-review.googlesource.com/c/go/+/538155
Reviewed-by: Cherry Mui &lt;cherryyz@google.com&gt;
Run-TryBot: qiulaidongfeng &lt;2645477756@qq.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: David Chase &lt;drchase@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: optimize Is and As by reusing reflection of target</title>
<updated>2023-08-18T23:40:44Z</updated>
<author>
<name>j178</name>
<email>sherlockjoe8@gmail.com</email>
</author>
<published>2023-08-18T04:04:35Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=ba7ba9bcc0e755f2c072d308e1c9f79bb2564e03'/>
<id>urn:sha1:ba7ba9bcc0e755f2c072d308e1c9f79bb2564e03</id>
<content type='text'>
goos: darwin
goarch: amd64
pkg: errors
cpu: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
        │     old     │                 new                 │
        │   sec/op    │   sec/op     vs base                │
Is-12     133.4n ± 0%   126.8n ± 3%   -4.91% (p=0.001 n=10)
As-12     464.1n ± 1%   307.2n ± 0%  -33.80% (p=0.000 n=10)
geomean   248.8n        197.4n       -20.66%

        │    old     │                 new                 │
        │    B/op    │    B/op     vs base                 │
Is-12     24.00 ± 0%   24.00 ± 0%       ~ (p=1.000 n=10) ¹
As-12     40.00 ± 0%   40.00 ± 0%       ~ (p=1.000 n=10) ¹
geomean   30.98        30.98       +0.00%
¹ all samples are equal

        │    old     │                 new                 │
        │ allocs/op  │ allocs/op   vs base                 │
Is-12     1.000 ± 0%   1.000 ± 0%       ~ (p=1.000 n=10) ¹
As-12     2.000 ± 0%   2.000 ± 0%       ~ (p=1.000 n=10) ¹
geomean   1.414        1.414       +0.00%
¹ all samples are equal

Change-Id: I0844f3ab77e63b5f773594157dcffaffffd5e70d
Reviewed-on: https://go-review.googlesource.com/c/go/+/520756
Run-TryBot: Ian Lance Taylor &lt;iant@google.com&gt;
Run-TryBot: Ian Lance Taylor &lt;iant@golang.org&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
</content>
</entry>
<entry>
<title>errors: add a colon after Output to make the Example in the document display correctly</title>
<updated>2023-08-16T02:08:40Z</updated>
<author>
<name>cui fliter</name>
<email>imcusg@gmail.com</email>
</author>
<published>2023-08-15T15:07:18Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=16ec27b47c4c103ddcdd46888e1b5175cc574d7a'/>
<id>urn:sha1:16ec27b47c4c103ddcdd46888e1b5175cc574d7a</id>
<content type='text'>
Change-Id: Iaa1751c6ac0df9d5b2cb74efb16996f4eaea0503
Reviewed-on: https://go-review.googlesource.com/c/go/+/519236
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Run-TryBot: shuang cui &lt;imcusg@gmail.com&gt;
Run-TryBot: Ian Lance Taylor &lt;iant@google.com&gt;
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
</content>
</entry>
<entry>
<title>errors: optimize *joinError's Error method for less allocation and faster execution</title>
<updated>2023-07-31T18:37:32Z</updated>
<author>
<name>Jes Cok</name>
<email>xigua67damn@gmail.com</email>
</author>
<published>2023-06-06T23:25:42Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=26fc4aa956783268d7a289240a028774e1ea3878'/>
<id>urn:sha1:26fc4aa956783268d7a289240a028774e1ea3878</id>
<content type='text'>
Handle the case of one error at the beginning.
Use unsafe.String to avoid memory allocation when converting byte slice to string.

Change-Id: Ib23576f72b1d87489e6f17762be483f62ca4998a
GitHub-Last-Rev: ed8003bfbcae8efd42e54895db0554c139b9d3a7
GitHub-Pull-Request: golang/go#60026
Reviewed-on: https://go-review.googlesource.com/c/go/+/493237
Reviewed-by: Damien Neil &lt;dneil@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: David Chase &lt;drchase@google.com&gt;
Run-TryBot: Ian Lance Taylor &lt;iant@golang.org&gt;
</content>
</entry>
</feed>
