"Rename Mime10 to MIME10 in codebase

Renamed field 'Mime10' to 'MIME10' across multiple files for canonical representation and consistency with standard MIME naming format in the protocol."
This commit is contained in:
Winni Neessen 2023-10-13 15:23:28 +02:00
parent 07a3450103
commit e7c717d0fc
Signed by: wneessen
GPG key ID: 5F3AF39B820C119D
4 changed files with 5 additions and 5 deletions

2
eml.go
View file

@ -21,7 +21,7 @@ func EMLToMsg(fp string) (*Msg, error) {
addrHeader: make(map[AddrHeader][]*nm.Address),
genHeader: make(map[Header][]string),
preformHeader: make(map[Header]string),
mimever: Mime10,
mimever: MIME10,
}
pm, mbbuf, err := readEML(fp)

View file

@ -132,8 +132,8 @@ const (
// List of MIME versions
const (
// Mime10 is the MIME Version 1.0
Mime10 MIMEVersion = "1.0"
// MIME10 is the MIME Version 1.0
MIME10 MIMEVersion = "1.0"
)
// List of common content types

2
msg.go
View file

@ -129,7 +129,7 @@ func NewMsg(o ...MsgOption) *Msg {
encoding: EncodingQP,
genHeader: make(map[Header][]string),
preformHeader: make(map[Header]string),
mimever: Mime10,
mimever: MIME10,
}
// Override defaults with optionally provided MsgOption functions

View file

@ -137,7 +137,7 @@ func TestNewMsgWithMIMEVersion(t *testing.T) {
value MIMEVersion
want MIMEVersion
}{
{"MIME version is 1.0", Mime10, "1.0"},
{"MIME version is 1.0", MIME10, "1.0"},
}
for _, tt := range tests {