|
|
|
@ -68,9 +68,11 @@ func DecodeAny(decoder *Decoder, destination any, tag Tag) (n int, err error) {
|
|
|
|
|
|
|
|
|
|
|
|
func decodeAny(decoder *Decoder, destination reflect.Value, tag Tag) (n int, err error) {
|
|
|
|
func decodeAny(decoder *Decoder, destination reflect.Value, tag Tag) (n int, err error) {
|
|
|
|
errWrongDestinationType := func(expected string) error {
|
|
|
|
errWrongDestinationType := func(expected string) error {
|
|
|
|
|
|
|
|
// panic(fmt.Errorf(
|
|
|
|
return fmt.Errorf(
|
|
|
|
return fmt.Errorf(
|
|
|
|
"expected &%s destination, not %v",
|
|
|
|
"expected %s destination, not %v",
|
|
|
|
expected, destination)
|
|
|
|
expected, destination)
|
|
|
|
|
|
|
|
//)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if destination.Kind() != reflect.Pointer {
|
|
|
|
if destination.Kind() != reflect.Pointer {
|
|
|