go-gpgmime/pgpmime.go
emersion d579059ccf
Refactor the whole library.
* Replace NewEncrypter with Encrypt.
* Add Sign
* Remove {Encode,Decode}ArmoredMessage
Fixes #1
2017-08-06 18:56:02 +02:00

15 lines
282 B
Go

// pgpmime implements MIME security with OpenPGP, as defined in RFC 3156.
package pgpmime
import (
"io"
)
// Writer writes a PGP/MIME message body.
type Writer interface {
io.WriteCloser
// ContentType returns the content type of the PGP/MIME message.
ContentType() string
}