From cd4cb5c12e511243a700fa2fa2f5e0675f7dd02b Mon Sep 17 00:00:00 2001 From: Alexandre Oliveira Date: Mon, 22 Nov 2021 19:46:36 +0100 Subject: [PATCH] Update example file --- _example/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/_example/main.go b/_example/main.go index 045052a..67239ec 100644 --- a/_example/main.go +++ b/_example/main.go @@ -3,6 +3,7 @@ package main import ( "context" "fmt" + "os" "time" "github.com/libdns/libdns" @@ -38,7 +39,6 @@ func main() { } } - if testId != "" { // fmt.Printf("Delete entry for %s (id:%s)\n", testName, testId) // _, err = provider.DeleteRecords(context.TODO(), zone, []libdns.Record{libdns.Record{ @@ -52,7 +52,7 @@ func main() { _, err = provider.SetRecords(context.TODO(), zone, []libdns.Record{libdns.Record{ Type: "TXT", Name: testName, - Value: fmt.Sprintf("\"Replacement test entry created by libdns %s\"", time.Now()), + Value: fmt.Sprintf("Replacement test entry created by libdns %s", time.Now()), TTL: time.Duration(30) * time.Second, ID: testId, }}) @@ -64,11 +64,11 @@ func main() { _, err = provider.AppendRecords(context.TODO(), zone, []libdns.Record{libdns.Record{ Type: "TXT", Name: testName, - Value: fmt.Sprintf("\"This is a test entry created by libdns %s\"", time.Now()), + Value: fmt.Sprintf("This is a test entry created by libdns %s", time.Now()), TTL: time.Duration(30) * time.Second, }}) if err != nil { fmt.Printf("ERROR: %s\n", err.Error()) } } -} \ No newline at end of file +}