Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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)
- }
- }
Add Comment
Please, Sign In to add comment