From cafe86335018c2b8376c7ad8f7610a29907588c3 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 15 Mar 2024 07:39:18 -0400 Subject: [PATCH] fix: add missing mapstructure tags --- config/mail.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/config/mail.go b/config/mail.go index 4b74ef8..35dd845 100644 --- a/config/mail.go +++ b/config/mail.go @@ -5,13 +5,13 @@ import "errors" var _ Validator = (*MailConfig)(nil) type MailConfig struct { - Host string - Port int - SSL bool - AuthType string - Username string - Password string - From string + Host string `mapstructure:"host"` + Port int `mapstructure:"port"` + SSL bool `mapstructure:"ssl"` + AuthType string `mapstructure:"auth_type"` + Username string `mapstructure:"username"` + Password string `mapstructure:"password"` + From string `mapstructure:"from"` } func (m MailConfig) Validate() error {