Golang net/mail.ParseAddressList() function example
package net/mail
Golang net/mail.ParseAddressList() function usage example
package main
import (
"fmt"
"net/mail"
)
var emailAddresses = "abc@abc.com, def@def.com, ghi@ghi.com"
func main() {
fmt.Println(mail.ParseAddressList(emailAddresses))
}
Output :
[<abc@abc.com> <def@def.com> <ghi@ghi.com>] <nil>
Reference :
Advertisement
Something interesting
Tutorials
+9.9k Golang : Turn string or text file into slice example
+12.2k Golang : List running EC2 instances and descriptions
+22.3k Golang : Read directory content with filepath.Walk()
+8.9k Golang : Sort lines of text example
+14.4k Golang : Find network of an IP address
+23.5k Golang : Check if element exist in map
+5.1k Linux/Unix/MacOSX : Find out which application is listening to port 80 or use which IP version
+7.1k Golang : Transform lisp or spinal case to Pascal case example
+14.5k Golang : How to determine if user agent is a mobile device example
+16.8k Golang : Read integer from file into array
+8.9k Golang : Find network service name from given port and protocol
+6.2k Golang : Calculate US Dollar Index (DXY)