server/helper_test.go
raw| 1 | package server |
| 2 | |
| 3 | import ( |
| 4 | "fmt" |
| 5 | |
| 6 | "github.com/google/uuid" |
| 7 | ) |
| 8 | |
| 9 | func newMessageLiteral(from, to string) []byte { |
| 10 | return []byte(fmt.Sprintf("From: %v\r\nReceiver: %v\r\nSubject: %v\r\n\r\nHello World!", from, to, uuid.New())) |
| 11 | } |
| 12 | |
| 13 | func newMessageLiteralWithSubject(from, to, subject string) []byte { |
| 14 | return []byte(fmt.Sprintf("From: %v\r\nReceiver: %v\r\nSubject: %v\r\n\r\nHello World!", from, to, subject)) |
| 15 | } |