diff options
Diffstat (limited to 'errors.go')
-rw-r--r-- | errors.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -48,6 +48,7 @@ type DecodeSyntaxError struct { func (e *DecodeSyntaxError) Error() string { return fmt.Sprintf("json: syntax error at input byte %v: %v", e.Offset, e.Err) } +func (e *DecodeSyntaxError) Unwrap() error { return e.Err } // A *DecodeTypeError is returned from Decode if the JSON input is not // appropriate for the given Go type. |