Documentation ¶
Index ¶
- func EnsureCommaDelimitedAddresses(s string) string
- func FindUnquoted(s string, v rune, quote rune) []int
- func JoinAddress(addrs []mail.Address) string
- func NewLockedSource(seed int64) rand.Source64
- func SplitAfterUnquoted(s string, sep rune, quote rune) []string
- func SplitUnquoted(s string, sep rune, quote rune) []string
- func UUID(rs rand.Source) string
- func Wrap(max int, strs ...string) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureCommaDelimitedAddresses ¶
EnsureCommaDelimitedAddresses is used by AddressList to ensure that address lists are properly delimited.
func FindUnquoted ¶
FindUnquoted returns the indexes of the instance of v in s, or empty slice if v is not present in s. It ignores v present inside quoted runs.
func JoinAddress ¶
JoinAddress formats a slice of Address structs such that they can be used in a To or Cc header.
func NewLockedSource ¶
NewLockedSource creates a source of randomness using the given seed.
func SplitAfterUnquoted ¶
SplitAfterUnquoted slices s into all substrings after each instance of sep and returns a slice of those substrings.
If s does not contain sep and sep is not empty, SplitAfterUnquoted returns a slice of length 1 whose only element is s.
It ignores sep present inside quoted runs.
func SplitUnquoted ¶
SplitUnquoted slices s into all substrings separated by sep and returns a slice of the substrings between those separators.
If s does not contain sep and sep is not empty, SplitUnquoted returns a slice of length 1 whose only element is s.
It ignores sep present inside quoted runs.
Types ¶
This section is empty.