From 0a3262c32ecabcb22956dd26701d4de13e6e7d69 Mon Sep 17 00:00:00 2001 From: MrMelon54 Date: Sat, 21 Sep 2024 16:13:46 +0100 Subject: [PATCH] Add yaml field names --- mail.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mail.go b/mail.go index 1d4d174..923f946 100644 --- a/mail.go +++ b/mail.go @@ -12,12 +12,12 @@ import ( ) type Mail struct { - Name string `json:"name"` - Tls bool `json:"tls"` - Server string `json:"server"` - From FromAddress `json:"from"` - Username string `json:"username"` - Password string `json:"password"` + Name string `json:"name" yaml:"name"` + Tls bool `json:"tls" yaml:"tls"` + Server string `json:"server" yaml:"server"` + From FromAddress `json:"from" yaml:"from"` + Username string `json:"username" yaml:"username"` + Password string `json:"password" yaml:"password"` } func (m *Mail) loginInfo() sasl.Client {