Hello,
> but this doesn't work:
>
> if err := json.NewDecoder(resp.Body).Decode(&interface{}{}); err != nil {
> t.Fatal(err)
> }
You can use new(interface{}).
See https://play.golang.org/p/s85MwlDygBG
Harald
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/20200903222503.GA4288%40hweidner.de.