mirror of
https://github.com/golang/go
synced 2024-09-29 22:24:33 -06:00
encoding/json: added docs to UnsupportedValueError
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
parent
afb5fca25a
commit
516cd7a929
@ -236,6 +236,8 @@ func (e *UnsupportedTypeError) Error() string {
|
|||||||
return "json: unsupported type: " + e.Type.String()
|
return "json: unsupported type: " + e.Type.String()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// An UnsupportedValueError is returned by Marshal when attempting
|
||||||
|
// to encode an unsupported value.
|
||||||
type UnsupportedValueError struct {
|
type UnsupportedValueError struct {
|
||||||
Value reflect.Value
|
Value reflect.Value
|
||||||
Str string
|
Str string
|
||||||
|
Loading…
Reference in New Issue
Block a user