Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@arbarlow
Copy link

Here's a patch that will accept an io.Reader for both Attach and Embed with accompanying tests.

I kept the original methods named as Attach and added AttachReader though it is up for discussion!

I feel in Go the idiomatic thing would be to have

Attach(name string, r io.Reader, settings ...FileSetting)

and

AttachFile(filename string, settings ...FileSetting)

So that AttachFile is really only a convenience method. I think most people in Go would be using something io.Reader compatible?

But it works for the time being and it's sufficient enough

I wanted to add an example to the example file. But since it's pointing to a gopkg.in version that couldn't be possible at the moment without breaking the test suite.

This is talked about in issue #69

@arbarlow
Copy link
Author

@alexcesaro what can I do to help have this merged?

@limoli
Copy link

limoli commented Nov 5, 2018

Why are you waiting to merge this?

@pedromorgan
Copy link

see #104 (Maintainer missing) and #108

ivy added a commit to go-mail/mail that referenced this pull request Nov 10, 2018
@arbarlow arbarlow closed this Nov 28, 2019
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.

3 participants