save records, fix . problem, extend readme

This commit is contained in:
2022-03-19 00:36:54 +01:00
parent b8313388b5
commit 80c2a5717b
7 changed files with 235 additions and 20 deletions

11
util/util.go Normal file
View File

@@ -0,0 +1,11 @@
package util
import "strings"
func ParseDomain(domain string) string {
if !strings.HasSuffix(domain, ".") {
return domain + "."
}
return domain
}