Browse Source

gofmt

pull/1/head
Efertone 2 years ago
parent
commit
d2b993be8b
No known key found for this signature in database GPG Key ID: F484939122A96110
1 changed files with 7 additions and 7 deletions
  1. +7
    -7
      main.go

+ 7
- 7
main.go View File

@ -16,7 +16,7 @@ import (
)
const (
appVersion = "1.0.1"
appVersion = "1.0.1"
infoURI = "https://idlerpg.lolhosting.net/xml.php"
msgTemplate = `Dear %s
@ -76,8 +76,8 @@ func sendEmailNotification(username string, email string) {
message := mg.NewMessage(sender, subject, body, email)
ctx, cancel := context.WithTimeout(context.Background(), time.Second*10)
defer cancel()
resp, id, err := mg.Send(ctx, message)
log.Infoln("Resp:", resp, "; ID:", id, "; err:", err)
resp, id, err := mg.Send(ctx, message)
log.Infoln("Resp:", resp, "; ID:", id, "; err:", err)
}
func main() {
@ -86,10 +86,10 @@ func main() {
email := flag.String("email", "", "Send notification if user is offline")
flag.Parse()
if *version {
fmt.Println(appVersion)
return
}
if *version {
fmt.Println(appVersion)
return
}
if *username == "" {
panic("Username is not specified")


Loading…
Cancel
Save