Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1015 Bytes

README.md

File metadata and controls

40 lines (28 loc) · 1015 Bytes

dogo Build StatusCoverage StatusGoDoc

Overview

This project is NOT MAINTAINED. I'd recommend using DigitalOcean's official API instead.

DigitalOcean Go Client V2 API.

Getting Started

Installing

$ go get github.com/domluna/dogo

Example

package main

import (
	"github.com/domluna/dogo"
)

func main() {

  // If the token is the empty string("") then it'll attempt
  // to fill the value under env var $DIGITALOCEAN_TOKEN
	client := dogo.NewClient("") // $DIGITALOCEAN_TOKEN

	// get all droplets
	droplets, err := client.ListDroplets()
	if err != nil {
		// deal with error
	}
	// do stuff with droplets
}