add more documentation, examples with tests to illustrate reusable components

This commit is contained in:
Mechiel Lukkien
2023-12-12 15:47:26 +01:00
parent 810cbdc61d
commit d1b66035a9
40 changed files with 973 additions and 119 deletions

View File

@ -83,8 +83,8 @@ func quotedString(s string) string {
return w.String()
}
// Header returns a Received-SPF header line including trailing crlf that can
// be prepended to an incoming message.
// Header returns a Received-SPF header including trailing crlf that can be
// prepended to an incoming message.
func (r Received) Header() string {
// ../rfc/7208:2043
w := &message.HeaderWriter{}