Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use io.Reader/io.Writer interfaces to back the qoute database #5

Closed
Alextopher opened this issue Dec 15, 2023 · 0 comments · Fixed by #8
Closed

Use io.Reader/io.Writer interfaces to back the qoute database #5

Alextopher opened this issue Dec 15, 2023 · 0 comments · Fixed by #8
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Alextopher
Copy link
Collaborator

var quoteFile *os.File

In quotes.go the bot is using an *os.File to back the quotes database. It would be cleaner, and easier to test, if quotes were backed by generic io.Reader and io.Writer.

@Alextopher Alextopher added enhancement New feature or request good first issue Good for newcomers labels Dec 15, 2023
@Alextopher Alextopher linked a pull request Dec 21, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant