Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
godo
✓ github.com/digitalocean/godo
Lists all DigitalOcean droplets using the API client.
package main
import (
"context"
"fmt"
"github.com/digitalocean/godo"
)
func main() {
client := godo.NewFromToken("your-api-token")
droplets, _, err := client.Droplets.List(context.Background(), nil)
if err != nil {
panic(err)
}
fmt.Printf("Found %d droplets\n", len(droplets))
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.195.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.