mirror of
https://github.com/taigrr/godns
synced 2025-01-18 04:03:25 -08:00
fix golint warnings
This commit is contained in:
parent
8e5314ff09
commit
d4bf2ca8d1
@ -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"`
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package godns
|
package godns
|
||||||
|
|
||||||
var MailTemplate = `
|
var mailTemplate = `
|
||||||
<html>
|
<html>
|
||||||
<body>
|
<body>
|
||||||
<div role="section">
|
<div role="section">
|
||||||
|
2
utils.go
2
utils.go
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user