Package hetzner-dns-go is a library for the Hetzner DNS API.
The library’s documentation is available at GoDoc, the public API documentation is available at dns.hetzner.com.
package main
import (
"fmt"
"log"
client "github.com/nl2go/hetzner-dns-go"
)
func main() {
hDNSClient := client.NewAuthApiTokenClient("yourAuthAPIToken")
zones, err := hDNSClient.ZonesGet()
if err != nil {
log.Fatalf("error while retrieving zones list: %s\n", err)
}
fmt.Println(zones)
}