1
0
mirror of https://github.com/taigrr/godns synced 2025-01-18 04:03:25 -08:00

fix golint warnings

This commit is contained in:
Timothy 2017-11-06 17:53:11 +08:00
parent 8e5314ff09
commit d4bf2ca8d1
3 changed files with 3 additions and 2 deletions

View File

@ -12,6 +12,7 @@ type Domain struct {
SubDomains []string `json:"sub_domains"` SubDomains []string `json:"sub_domains"`
} }
// Notify struct for SMTP notification
type Notify struct { type Notify struct {
Enabled bool `json:"enabled"` Enabled bool `json:"enabled"`
SMTPServer string `json:"smtp_server"` SMTPServer string `json:"smtp_server"`

View File

@ -1,6 +1,6 @@
package godns package godns
var MailTemplate = ` var mailTemplate = `
<html> <html>
<body> <body>
<div role="section"> <div role="section">

View File

@ -129,7 +129,7 @@ func SendNotify(configuration *Settings, domain, currentIP string) error {
func buildTemplate(currentIP, domain string) string { func buildTemplate(currentIP, domain string) string {
t := template.New("notification template") t := template.New("notification template")
t.Parse(MailTemplate) t.Parse(mailTemplate)
data := struct { data := struct {
CurrentIP string CurrentIP string