Re: [go-nuts] Re: Do we need to call multipart.Part.Close

2024-02-07 Thread Pedro Luis Guzmán Hernández
Tue, Feb 6, 2024 at 6:29 AM Pedro Luis Guzmán Hernández > wrote: > > > > Thanks Brian. That is an implementation detail though, so relying on it > with no mention in the documentation at all feels unsound. A Close method > usually means you have to defer it right after ge

[go-nuts] Re: Do we need to call multipart.Part.Close

2024-02-06 Thread Pedro Luis Guzmán Hernández
ore moving onto the next one, it looks > like you should be good. > > On Tuesday 6 February 2024 at 13:34:16 UTC Pedro Luis Guzmán Hernández > wrote: > >> multipart.Part, returned by multipart.Reader's NextPart method, have a >> Close() method. The only example

[go-nuts] Do we need to call multipart.Part.Close

2024-02-06 Thread Pedro Luis Guzmán Hernández
multipart.Part, returned by multipart.Reader's NextPart method, have a Close() method. The only example here https://pkg.go.dev/mime/multipart#NewReader doesn't use the Close() method at all, so what's it purpose? Can we safely ignore it? The reason I'm asking is that, calling *defer