Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 869 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 869 Bytes

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