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.
govultr
✓ github.com/vultr/govultr/v2
Fetches account information from Vultr API.
package main
import (
"context"
"fmt"
"github.com/vultr/govultr/v2"
)
func main() {
client := govultr.NewClient(nil)
client.SetAPIKey("your-api-key")
account, _, err := client.Account.Get(context.Background())
if err != nil {
fmt.Println("Error:", err)
return
}
fmt.Println(account)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
2.17.2latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.