toorop / go-dkim

DKIM package for golang
MIT License
98 stars 39 forks source link

Expose and rename newDkimHeaderFromEmail #19

Closed terrabitz closed 4 years ago

terrabitz commented 4 years ago

Closes Issue #18

This MR does 3 main things:

  1. It rename newDkimHeaderFromEmail to GetHeader in order to publicly expose it
  2. It renames dkimHeader to DKIMHeader
  3. It unexports the RawForSign field from DKIMHeader, since this seems like a field that's only applicable internally

I also added a couple rudimentary unit tests, but these aren't exhaustive since most of the code coverage is already done in Test_Validate

toorop commented 4 years ago

Thanks ;)