1
0
mirror of https://github.com/golang/go synced 2024-11-23 10:00:03 -07:00

encoding/json: added docs to UnsupportedValueError

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
Carlos Alexandro Becker 2020-09-13 11:24:09 -03:00
parent afb5fca25a
commit 516cd7a929

View File

@ -236,6 +236,8 @@ func (e *UnsupportedTypeError) Error() string {
return "json: unsupported type: " + e.Type.String()
}
// An UnsupportedValueError is returned by Marshal when attempting
// to encode an unsupported value.
type UnsupportedValueError struct {
Value reflect.Value
Str string