go/src/strconv
Pantelis Sampaziotis 0adc89aa96 strconv: add Unwrap to custom error types
Updates #30322

This change adds the Unwrap method to NumError. NumError is the only custom error type of the strconv that has a nested exported error.

Change-Id: I8774886348880365a83f72a1d106276def27dffe
GitHub-Last-Rev: 712f3df884
GitHub-Pull-Request: golang/go#34213
Reviewed-on: https://go-review.googlesource.com/c/go/+/194563
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
2019-09-30 21:07:51 +00:00
..
testdata
atob.go strconv: add missing period to godoc comment 2018-06-09 01:26:25 +00:00
atob_test.go
atof.go strconv: Speed improvement to number parsing 2019-08-28 03:23:59 +00:00
atof_test.go strconv: accept underscores in ParseInt, ParseUint, ParseFloat 2019-02-12 14:48:24 +00:00
atoi.go strconv: add Unwrap to custom error types 2019-09-30 21:07:51 +00:00
atoi_test.go strconv: add Unwrap to custom error types 2019-09-30 21:07:51 +00:00
decimal.go
decimal_test.go
doc.go strconv: add missing package name into doc.go(godoc overview) 2018-12-30 18:30:11 +00:00
example_test.go strconv: document handling of NaN and ±Inf 2019-05-31 11:26:23 +00:00
export_test.go
extfloat.go strconv: simplify (*extFloat).Multiply using math/bits.Mul64 2019-03-04 22:25:21 +00:00
fp_test.go
ftoa.go strconv: fix rounding in FormatFloat fallback path 2019-05-23 15:41:19 +00:00
ftoa_test.go strconv: fix rounding in FormatFloat fallback path 2019-05-23 15:41:19 +00:00
internal_test.go
isprint.go all: update to Unicode 11 2019-04-25 20:33:22 +00:00
itoa.go strconv: make docs for Itoa and Atoi slightly higher level 2018-12-31 22:48:43 +00:00
itoa_test.go strconv: simplify and optimize Itoa(small) 2018-05-03 18:07:02 +00:00
makeisprint.go all: fix non-standard "DO NOT EDIT" comments for generated files 2018-03-10 17:50:11 +00:00
quote.go strconv: pre-allocate in appendQuotedWith 2019-04-18 04:30:46 +00:00
quote_test.go strconv: detect invalid UTF-8 in the Unquote fast path 2018-02-13 18:33:44 +00:00
strconv_test.go strconv: pre-allocate in appendQuotedWith 2019-04-18 04:30:46 +00:00