go-imap
go-imap copied to clipboard
Fix string constants types
String constants are declared this way:
const (
// SetFlags replaces existing flags by new ones.
SetFlags FlagsOp = "FLAGS"
// AddFlags adds new flags.
AddFlags = "+FLAGS"
// RemoveFlags removes existing flags.
RemoveFlags = "-FLAGS"
)
This means only the first value with have the right type, others will be string
.
Fix it by specifying the type for each value. This is a breaking change.