go-mail icon indicating copy to clipboard operation
go-mail copied to clipboard

refactor: remove recursion from base64LineBreaker.Write

Open srpvpn opened this issue 3 weeks ago • 0 comments

This PR refactors base64LineBreaker.Write to use an iterative loop instead of recursion

The logic and external behavior remain unchanged. The refactor makes the control flow easier to follow and avoids deep call stacks when processing large inputs.

srpvpn avatar Dec 28 '25 16:12 srpvpn