feat: Support Writer #124

Merged
EliCDavis merged 2 commits from feat/writer into master 2025-07-25 22:48:11 -04:00
EliCDavis commented 2025-07-19 16:09:19 -04:00 (Migrated from github.com)

Summary

Adds a new struct that implements the io.Writer interface.

I had to make a judgement call to buffer the writer input to only write when it sees line breaks to allow for all the different opportunities to censor words to take place. I'm not exactly happy with this decision, and am open to suggestions on better ways to buffer the input such that the buffer size is minimized

Relevant issue: #123

Checklist

  • Tested and/or added tests to validate that the changes work as intended, if applicable.
  • Updated documentation in README.md, if applicable.
<!-- Thank you for contributing! --> ## Summary <!-- If there's a relevant issue, you can just write the issue number below (e.g. #123) --> Adds a new struct that implements the `io.Writer` interface. I had to make a judgement call to buffer the writer input to only write when it sees line breaks to allow for all the different opportunities to censor words to take place. I'm not exactly happy with this decision, and am open to suggestions on better ways to buffer the input such that the buffer size is minimized Relevant issue: #123 ## Checklist <!-- Replace [ ] by [X] if you have completed the item --> - [x] Tested and/or added tests to validate that the changes work as intended, if applicable. - [x] Updated documentation in `README.md`, if applicable.
TwiN (Migrated from github.com) approved these changes 2025-07-25 13:24:57 -04:00
TwiN commented 2025-07-28 13:23:43 -04:00 (Migrated from github.com)
Released in https://github.com/TwiN/go-away/releases/tag/v1.7.0
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
TwiN/go-away!124
No description provided.