module
Version:
v0.0.0-...-078f61a
Opens a new window with list of versions in this module.
Published: Jun 13, 2020
License: MIT
Opens a new window with license information.
README
¶
hdns: A Go library for the Hetzner DNS API

Package hdns
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.
Example
package main
import (
"context"
"fmt"
"log"
"github.com/Estivador/hdns-go/hdns"
)
func main() {
client := hdns.NewClient(hdns.WithToken("token"))
zone, _, err := client.Zone.GetByID(context.Background(), 1)
if err != nil {
log.Fatalf("error retrieving zone: %s\n", err)
}
if zone != nil {
fmt.Printf("zone 1 is called %q\n", zone.Name)
} else {
fmt.Println("zone 1 not found")
}
}
License
MIT license
Directories
¶
Package hdns is a library for the Hetzner DNS API.
|
Package hdns is a library for the Hetzner DNS API. |
|
|
Click to show internal directories.
Click to hide internal directories.