resp.Body is already an io.Reader, sou you can read it in chunks as you wish.
2018. december 29., szombat 12:09:56 UTC+1 időpontban Abhijit Desai a következőt írta: > > > Not xml decoder... I mean want to capture stream chunk/parts when part > data arrived at web server > Don't want to wait to receive entire file/request and then process rather > want to process whatever comes in > > Thanks for the reply > > On Saturday, December 29, 2018 at 3:24:54 PM UTC+5:30, Tamás Gulácsi wrote: >> >> Yes, use xml.NewDecoder(r.Br.Body) > > -- 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 golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.