Skip to content

Commit 2638b2d

Browse files
committed
#72 Initialize the ProbesInto and IncludedIn using make()
1 parent 2cc5fa1 commit 2638b2d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

reason/lib.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@
1010
package reason
1111
import "libsisimai.org/sisimai/sis"
1212

13-
// Keep each function (pointer) defined in sisimai/reason/*.go to check/detect the bounce reason
14-
var IncludedIn = map[string]func(string) bool {}
15-
var ProbesInto = map[string]func(*sis.Fact) bool {}
13+
// Keep each function (pointer) defined in sisimai/reason/*.go to check/detect the bounce reason.
14+
// % grep '^func init' ./reason/why-*.go | wc -l
15+
var IncludedIn = make(map[string]func(string) bool, 36)
16+
var ProbesInto = make(map[string]func(*sis.Fact) bool, 36)
1617
var Availables = map[string]string{
1718
"AuthFailure": "Email rejected due to SPF, DKIM, DMARC failure",
1819
"BadReputation": "Email rejected due to an IP address reputation",

0 commit comments

Comments
 (0)