diff --git a/digitalocean-dynamic-ip.go b/digitalocean-dynamic-ip.go index 06c3f40..987d1df 100644 --- a/digitalocean-dynamic-ip.go +++ b/digitalocean-dynamic-ip.go @@ -94,7 +94,7 @@ type DOResponse struct { } `json:"links"` } -//GetConfig : get configuration file ~/.digitalocean-dynamic-ip.json +// GetConfig : get configuration file ~/.digitalocean-dynamic-ip.json func GetConfig() ClientConfig { cmdHelp := flag.Bool("h", false, "Show the help message") cmdHelp2 := flag.Bool("help", false, "Show the help message") @@ -145,7 +145,7 @@ func usage() { )) } -//CheckLocalIPs : get current IP of server. checks both IPv4 and Ipv6 to support dual stack environments +// CheckLocalIPs : get current IP of server. checks both IPv4 and Ipv6 to support dual stack environments func CheckLocalIPs() (ipv4, ipv6 net.IP) { var ipv4String, ipv6String string ipv4CheckURL := "https://api.ipify.org/?format=text" @@ -201,7 +201,7 @@ func getURLBody(url string) (string, error) { return string(body), nil } -//GetDomainRecords : Get DNS records of current domain. +// GetDomainRecords : Get DNS records of current domain. func GetDomainRecords(domain string) []DNSRecord { ret := make([]DNSRecord, 0) var page DOResponse