mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-25 13:29:27 +01:00
apply go1.19 gofmt
This commit is contained in:
parent
096c12fb52
commit
5b72cd8622
@ -4,9 +4,11 @@
|
|||||||
|
|
||||||
// Package smtp implements the Simple Mail Transfer Protocol as defined in RFC 5321.
|
// Package smtp implements the Simple Mail Transfer Protocol as defined in RFC 5321.
|
||||||
// It also implements the following extensions:
|
// It also implements the following extensions:
|
||||||
|
//
|
||||||
// 8BITMIME RFC 1652
|
// 8BITMIME RFC 1652
|
||||||
// AUTH RFC 2554
|
// AUTH RFC 2554
|
||||||
// STARTTLS RFC 3207
|
// STARTTLS RFC 3207
|
||||||
|
//
|
||||||
// Additional extensions may be handled by clients.
|
// Additional extensions may be handled by clients.
|
||||||
//
|
//
|
||||||
// The smtp package is frozen and is not accepting new features.
|
// The smtp package is frozen and is not accepting new features.
|
||||||
|
@ -111,6 +111,7 @@ func (socket *Socket) Write(data []byte) (err error) {
|
|||||||
// 4. MUST respect the same ordering guarantees as Write (i.e., if a call to Write that sends
|
// 4. MUST respect the same ordering guarantees as Write (i.e., if a call to Write that sends
|
||||||
// message m1 happens-before a call to BlockingWrite that sends message m2,
|
// message m1 happens-before a call to BlockingWrite that sends message m2,
|
||||||
// m1 must be sent on the wire before m2
|
// m1 must be sent on the wire before m2
|
||||||
|
//
|
||||||
// Callers MUST be writing to the client's socket from the client's own goroutine;
|
// Callers MUST be writing to the client's socket from the client's own goroutine;
|
||||||
// other callers must use the nonblocking Write call instead. Otherwise, a client
|
// other callers must use the nonblocking Write call instead. Otherwise, a client
|
||||||
// with a slow/unreliable connection risks stalling the progress of the system as a whole.
|
// with a slow/unreliable connection risks stalling the progress of the system as a whole.
|
||||||
|
@ -22,8 +22,11 @@ type MessagePair struct {
|
|||||||
// SplitMessage represents a message that's been split for sending.
|
// SplitMessage represents a message that's been split for sending.
|
||||||
// Two possibilities:
|
// Two possibilities:
|
||||||
// (a) Standard message that can be relayed on a single 512-byte line
|
// (a) Standard message that can be relayed on a single 512-byte line
|
||||||
|
//
|
||||||
// (MessagePair contains the message, Split == nil)
|
// (MessagePair contains the message, Split == nil)
|
||||||
|
//
|
||||||
// (b) multiline message that was split on the client side
|
// (b) multiline message that was split on the client side
|
||||||
|
//
|
||||||
// (Message == "", Split contains the split lines)
|
// (Message == "", Split contains the split lines)
|
||||||
type SplitMessage struct {
|
type SplitMessage struct {
|
||||||
Message string
|
Message string
|
||||||
|
Loading…
Reference in New Issue
Block a user