File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -126,11 +126,11 @@ The mail response is used for debugging and inspecting results of the mailer. Be
126
126
``` go
127
127
// Response represents the data passed back from a successful transmission.
128
128
type Response struct {
129
- StatusCode int // e.g. 200
130
- Body []byte // e.g. {"result: success"}
131
- Headers map [ string ][] string // e.g. map[X-Ratelimit-Limit:[600]]
132
- ID string // e.g "100"
133
- Message interface {} // e.g "Email sent successfully"
129
+ StatusCode int // e.g. 200
130
+ Body []byte // e.g. {"result: success"}
131
+ Headers http. Header // e.g. map[X-Ratelimit-Limit:[600]]
132
+ ID string // e.g "100"
133
+ Message string // e.g "Email sent successfully"
134
134
}
135
135
```
136
136
Original file line number Diff line number Diff line change 13
13
14
14
package mail
15
15
16
+ import "net/http"
17
+
16
18
// Response represents the data passed back from a successful transmission.
17
19
type Response struct {
18
- StatusCode int // e.g. 200
19
- Body []byte // e.g. {"result: success"}
20
- Headers map [ string ][] string // e.g. map[X-Ratelimit-Limit:[600]]
21
- ID string // e.g "100"
22
- Message interface {} // e.g "Email sent successfully"
20
+ StatusCode int // e.g. 200
21
+ Body []byte // e.g. {"result: success"}
22
+ Headers http. Header // e.g. map[X-Ratelimit-Limit:[600]]
23
+ ID string // e.g "100"
24
+ Message string // e.g "Email sent successfully"
23
25
}
You can’t perform that action at this time.
0 commit comments