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

Rename Entity to Reader #186

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Rename Entity to Reader #186

wants to merge 1 commit into from

Conversation

emersion
Copy link
Owner

Entity doesn't make it clear that the message can only be consumed once and is inconsistent with Writer.

Entity doesn't make it clear that the message can only be
consumed once and is inconsistent with Writer.
mediaType string
mediaParams map[string]string
}
type Entity = Reader
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a comment indicating that this symbol is deprecated and should not be used anymore?

https://go.dev/wiki/Deprecated

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point.

@emersion
Copy link
Owner Author

emersion commented Jan 13, 2025

I'm not quite sure this is worth the churn. In particular, mail.Message and multipart.Part have a design similar to go-message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants