commit | d68db9428509638038945048f64207fa0ab318cb | [log] [tgz] |
---|---|---|
author | Marcel van Lohuizen <mpvl@golang.org> | Wed Oct 24 14:11:57 2018 +0200 |
committer | Marcel van Lohuizen <mpvl@golang.org> | Tue Nov 06 17:02:14 2018 +0000 |
tree | 7cd118d872eb3e8a9b348a9d5b1bb614c51dac2c | |
parent | 4ee764adc4b16dede5e62c8e4de9f4a2038f8b15 [diff] |
errors/fmt: improve error printing in detail mode - Add a colon after a non-detailed message if it has details or of it is followed by another message. Follows the design draft. This is more readable and more consistent with non-detailed errors. - Gobble newline after last detail This results in a better API experience when printing multiple sections consecutively. - Allow Detail to be called more than once. Change-Id: Ic19179cdf1479fded8b657d569cb66bd2e54467e Reviewed-on: https://go-review.googlesource.com/c/144199 Run-TryBot: Marcel van Lohuizen <mpvl@golang.org> Reviewed-by: Russ Cox <rsc@golang.org>
This subrepository holds experimental and deprecated (in the old
directory) packages.
The idea for this subrepository originated as the pkg/exp
directory of the main repository, but its presence there made it unavailable to users of the binary downloads of the Go installation. The subrepository has therefore been created to make it possible to go get
these packages.
Warning: Packages here are experimental and unreliable. Some may one day be promoted to the main repository or other subrepository, or they may be modified arbitrarily or even disappear altogether.
In short, code in this subrepository is not subject to the Go 1 compatibility promise. (No subrepo is, but the promise is even more likely to be violated by go.exp than the others.)
Caveat emptor.