- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for UnsupportedTypeError (0.44 sec)
-
src/encoding/xml/marshal.go
return err } } s.stack = append(s.stack, parents...) return nil } // UnsupportedTypeError is returned when [Marshal] encounters a type // that cannot be converted into XML. type UnsupportedTypeError struct { Type reflect.Type } func (e *UnsupportedTypeError) Error() string { return "xml: unsupported type: " + e.Type.String() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 18:46:41 UTC 2024 - 31.2K bytes - Viewed (0) -
src/encoding/json/encode.go
// can marshal themselves into valid JSON. type Marshaler interface { MarshalJSON() ([]byte, error) } // An UnsupportedTypeError is returned by [Marshal] when attempting // to encode an unsupported value type. type UnsupportedTypeError struct { Type reflect.Type } func (e *UnsupportedTypeError) Error() string { return "json: unsupported type: " + e.Type.String() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:18:55 UTC 2024 - 36.2K bytes - Viewed (0) -
src/encoding/xml/marshal_test.go
continue } if err.Error() != test.Err { t.Errorf("#%d: marshal(%#v) = [error] %v, want %v", idx, test.Value, err, test.Err) } if test.Kind != reflect.Invalid { if kind := err.(*UnsupportedTypeError).Type.Kind(); kind != test.Kind { t.Errorf("#%d: marshal(%#v) = [error kind] %s, want %s", idx, test.Value, kind, test.Kind) } } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 18:46:41 UTC 2024 - 66K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"UnmarshalTypeError.Struct", Field, 8}, {"UnmarshalTypeError.Type", Field, 0}, {"UnmarshalTypeError.Value", Field, 0}, {"Unmarshaler", Type, 0}, {"UnsupportedTypeError", Type, 0}, {"UnsupportedTypeError.Type", Field, 0}, {"UnsupportedValueError", Type, 0}, {"UnsupportedValueError.Str", Field, 0}, {"UnsupportedValueError.Value", Field, 0}, {"Valid", Func, 9}, },
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0) -
api/go1.txt
pkg encoding/json, type Unmarshaler interface { UnmarshalJSON } pkg encoding/json, type Unmarshaler interface, UnmarshalJSON([]uint8) error pkg encoding/json, type UnsupportedTypeError struct pkg encoding/json, type UnsupportedTypeError struct, Type reflect.Type pkg encoding/json, type UnsupportedValueError struct pkg encoding/json, type UnsupportedValueError struct, Str string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 14 18:58:28 UTC 2013 - 1.7M bytes - Viewed (0)