<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go/src/errors/example_test.go, branch json-isValidNumber</title>
<subtitle>Fork of Go programming language with my patches.</subtitle>
<id>http://git.kilabit.info/go/atom?h=json-isValidNumber</id>
<link rel='self' href='http://git.kilabit.info/go/atom?h=json-isValidNumber'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/'/>
<updated>2023-01-20T21:55:10Z</updated>
<entry>
<title>errors: move example functions into example_test file</title>
<updated>2023-01-20T21:55:10Z</updated>
<author>
<name>fangguizhen</name>
<email>1297394526@qq.com</email>
</author>
<published>2023-01-19T23:21:59Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=27b6ace2b4b068905eb2963e656e3cefcba32222'/>
<id>urn:sha1:27b6ace2b4b068905eb2963e656e3cefcba32222</id>
<content type='text'>
Change-Id: Ide70476698d82a51881802dd6bf05dd7abcd60e8
GitHub-Last-Rev: ddb251ded669d3dbbb96a05f4df7151c8d7c16d2
GitHub-Pull-Request: golang/go#57931
Reviewed-on: https://go-review.googlesource.com/c/go/+/462292
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: Cherry Mui &lt;cherryyz@google.com&gt;
Run-TryBot: Ian Lance Taylor &lt;iant@golang.org&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;
</content>
</entry>
<entry>
<title>errors: fix package example</title>
<updated>2019-06-03T22:09:05Z</updated>
<author>
<name>Andrew Gerrand</name>
<email>adg@golang.org</email>
</author>
<published>2019-05-31T10:33:01Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=5e2af2b0d2e7e367e461d4162b0338ff2dc08033'/>
<id>urn:sha1:5e2af2b0d2e7e367e461d4162b0338ff2dc08033</id>
<content type='text'>
The example in example_test.go requires that the whole file be
displayed; the addition of ExampleAs meant that only the body of the
package example function was shown, rather than the surrounding context.

This change moves ExampleAs to the file wrap_test.go file, restoring the
package example to its former glory.

Update #31716

Change-Id: Id0ea77bc06023b239a63c1d6a7c8b3c1dae91ce9
Reviewed-on: https://go-review.googlesource.com/c/go/+/179737
Reviewed-by: Marcel van Lohuizen &lt;mpvl@golang.org&gt;
Reviewed-by: Jean de Klerk &lt;deklerk@google.com&gt;
Run-TryBot: Benny Siegert &lt;bsiegert@gmail.com&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
</content>
</entry>
<entry>
<title>errors: update As example to include else case</title>
<updated>2019-05-17T16:21:05Z</updated>
<author>
<name>Jean de Klerk</name>
<email>deklerk@google.com</email>
</author>
<published>2019-05-17T00:15:39Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=703fb665d68ac96ae193891ffae2774c2a3deb4b'/>
<id>urn:sha1:703fb665d68ac96ae193891ffae2774c2a3deb4b</id>
<content type='text'>
The current example illustrates using As when the error is able to be
interpreted as an os.PathError, but elides the "else" case. This CL adds the
small extra else case to make it clear that it's not safe to assume As will
return true.

This CL also squash the err instantiation and the err nil check into one line
for brevity.

Change-Id: I3d3ab483ffb38fb2788d0498b3f03229a87dd7c3
Reviewed-on: https://go-review.googlesource.com/c/go/+/177717
Reviewed-by: Jonathan Amsterdam &lt;jba@google.com&gt;
Reviewed-by: Damien Neil &lt;dneil@google.com&gt;
Run-TryBot: Emmanuel Odeke &lt;emm.odeke@gmail.com&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
</content>
</entry>
<entry>
<title>errors: add Unwrap, Is, and As</title>
<updated>2019-02-27T19:09:40Z</updated>
<author>
<name>Marcel van Lohuizen</name>
<email>mpvl@golang.org</email>
</author>
<published>2019-02-22T23:09:40Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=62f5e8156ef56fa61e6af56f4ccc633bde1a9120'/>
<id>urn:sha1:62f5e8156ef56fa61e6af56f4ccc633bde1a9120</id>
<content type='text'>
Unwrap, Is and As are as defined in proposal
Issue #29934.

Also add Opaque for enforcing an error cannot
be unwrapped.

Change-Id: I4f3feaa42e3ee7477b588164ac622ba4d5e77cad
Reviewed-on: https://go-review.googlesource.com/c/163558
Run-TryBot: Marcel van Lohuizen &lt;mpvl@golang.org&gt;
Reviewed-by: Damien Neil &lt;dneil@google.com&gt;
</content>
</entry>
<entry>
<title>all: make copyright headers consistent with one space after period</title>
<updated>2016-03-01T23:34:33Z</updated>
<author>
<name>Brad Fitzpatrick</name>
<email>bradfitz@golang.org</email>
</author>
<published>2016-03-01T22:57:46Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=519474451a44b861e54466998a893a173bd54c4b'/>
<id>urn:sha1:519474451a44b861e54466998a893a173bd54c4b</id>
<content type='text'>
This is a subset of https://golang.org/cl/20022 with only the copyright
header lines, so the next CL will be smaller and more reviewable.

Go policy has been single space after periods in comments for some time.

The copyright header template at:

    https://golang.org/doc/contribute.html#copyright

also uses a single space.

Make them all consistent.

Change-Id: Icc26c6b8495c3820da6b171ca96a74701b4a01b0
Reviewed-on: https://go-review.googlesource.com/20111
Run-TryBot: Brad Fitzpatrick &lt;bradfitz@golang.org&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@golang.org&gt;
Reviewed-by: Matthew Dempsky &lt;mdempsky@google.com&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
</content>
</entry>
<entry>
<title>build: move package sources from src/pkg to src</title>
<updated>2014-09-08T04:08:51Z</updated>
<author>
<name>Russ Cox</name>
<email>rsc@golang.org</email>
</author>
<published>2014-09-08T04:08:51Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=c007ce824d9a4fccb148f9204e04c23ed2984b71'/>
<id>urn:sha1:c007ce824d9a4fccb148f9204e04c23ed2984b71</id>
<content type='text'>
Preparation was in CL 134570043.
This CL contains only the effect of 'hg mv src/pkg/* src'.
For more about the move, see golang.org/s/go14nopkg.
</content>
</entry>
</feed>
