Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
package main
import (
"fmt"
"os"
hetzner "github.com/appscode/go-hetzner"
)
// Problem: this library and perhaps the underlying API don't seem to provide access to the server bidding stuff.
func main() {
username := "<see google docs>"
password := "<see google docs>"
client := hetzner.NewClient(username, password)
p, r, err := client.Ordering.ListProducts()
if err != nil {
fmt.Fprintf(os.Stderr, "%v", err)
fmt.Println(r)
os.Exit(1)
}
for _, prd := range p {
fmt.Printf("%#v\n", prd)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.