Added support for mime and file contents. #7

Merged
merged 3 commits into from Oct 6, 2015

Conversation

Projects
None yet
2 participants
Owner

elopio commented Oct 1, 2015

No description provided.

elopio added some commits Oct 1, 2015

+ c <- fileContent.Bytes()
+}
+
+func writeUTF8(b io.Writer, s string) {
@fgimenez

fgimenez Oct 2, 2015

Collaborator

IMO the possible errors here should be taken into account and returned accordingly.

Also, I think that it would be better if the functions invoked in goroutines have some mean to communicate the possible errors, either with an error channel or returning an instance of a struct with an error field, here are nice examples [1].

Other than that looks fine for me. Maybe the subunit.go file is getting big, but all the functionality seems to be tightly related.

[1] https://blog.golang.org/pipelines

@elopio

elopio Oct 6, 2015

Owner

I agree with the errors. Let me get this merged and work in another PR with a solution for all the go routines.

elopio added a commit that referenced this pull request Oct 6, 2015

Merge pull request #7 from elopio/mime
Added support for mime and file contents.

@elopio elopio merged commit b4173b2 into master Oct 6, 2015

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details

@elopio elopio deleted the mime branch Oct 6, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment