mirror of
https://github.com/wneessen/go-mail.git
synced 2024-11-25 15:10:48 +01:00
Make GoLint happy
This commit is contained in:
parent
6285b5fb4f
commit
ba5f519d9d
3 changed files with 8 additions and 10 deletions
|
@ -4,12 +4,10 @@
|
|||
<option name="autoReloadType" value="ALL" />
|
||||
</component>
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="b7733b42-c5ae-46b3-8a96-8b973d69a11d" name="Changes" comment="Calling it a day...">
|
||||
<change afterPath="$PROJECT_DIR$/encoding.go" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/header.go" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/mailmsg.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/client_test.go" beforeDir="false" afterPath="$PROJECT_DIR$/client_test.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/cmd/main.go" beforeDir="false" afterPath="$PROJECT_DIR$/cmd/main.go" afterDir="false" />
|
||||
<list default="true" id="b7733b42-c5ae-46b3-8a96-8b973d69a11d" name="Changes" comment="More progress... calling it a day.">
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/client.go" beforeDir="false" afterPath="$PROJECT_DIR$/client.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/mailmsg.go" beforeDir="false" afterPath="$PROJECT_DIR$/mailmsg.go" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
|
@ -104,7 +102,8 @@
|
|||
<component name="VcsManagerConfiguration">
|
||||
<MESSAGE value="Makeing some progress..." />
|
||||
<MESSAGE value="Calling it a day..." />
|
||||
<option name="LAST_COMMIT_MESSAGE" value="Calling it a day..." />
|
||||
<MESSAGE value="More progress... calling it a day." />
|
||||
<option name="LAST_COMMIT_MESSAGE" value="More progress... calling it a day." />
|
||||
</component>
|
||||
<component name="VgoProject">
|
||||
<integration-enabled>true</integration-enabled>
|
||||
|
|
|
@ -131,7 +131,7 @@ func WithTLSConfig(co *tls.Config) Option {
|
|||
|
||||
// TLSPolicy returns the currently set TLSPolicy as string
|
||||
func (c *Client) TLSPolicy() string {
|
||||
return fmt.Sprintf("%s", c.tlspolicy)
|
||||
return c.tlspolicy.String()
|
||||
}
|
||||
|
||||
// ServerAddr returns the currently set combination of hostname and port
|
||||
|
|
|
@ -3,7 +3,6 @@ package mail
|
|||
import (
|
||||
"fmt"
|
||||
"math/rand"
|
||||
"mime"
|
||||
"os"
|
||||
"time"
|
||||
)
|
||||
|
@ -14,7 +13,7 @@ type Msg struct {
|
|||
charset string
|
||||
|
||||
// encoder represents a mime.WordEncoder from the std lib
|
||||
encoder mime.WordEncoder
|
||||
//encoder mime.WordEncoder
|
||||
|
||||
// header is a slice of strings that the different mail header fields
|
||||
header map[Header][]string
|
||||
|
|
Loading…
Reference in a new issue