Package hrobot-go is a library for the Hetzner Robot Webservice.
The library’s documentation is available at GoDoc, the public API documentation is available at robot.your-server.de.
package main
import (
"fmt"
"log"
client "github.com/nl2go/hrobot-go"
)
func main() {
robotClient := client.NewBasicAuthClient("user", "pass")
servers, err := robotClient.ServerGetList()
if err != nil {
log.Fatalf("error while retrieving server list: %s\n", err)
}
fmt.Println(servers)
}