Skip to content

nl2go/hrobot-go

Repository files navigation

hrobot-go: A Go library for the Hetzner Robot Webservice

Build Coverage

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.

Example

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)
}