github.com/go-email-validator/go-email-validator@v0.0.0-20230409163946-b8b9e6a0552e/pkg/presentation/converter/common.go (about) 1 package converter 2 3 import ( 4 "github.com/go-email-validator/go-email-validator/pkg/ev/evsmtp" 5 ) 6 7 // MX2String converts ms records to string array 8 func MX2String(MXs evsmtp.MXs) []string { 9 var result = make([]string, len(MXs)) 10 for i, mx := range MXs { 11 result[i] = mx.Host 12 } 13 14 return result 15 }