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.
linodego
✓ github.com/linode/linodego
Lists Linode instances using the API client.
package main
import (
"context"
"fmt"
"github.com/linode/linodego"
"golang.org/x/oauth2"
)
func main() {
tokenSource := oauth2.StaticTokenSource(&oauth2.Token{AccessToken: "YOUR_TOKEN"})
client := linodego.NewClient(oauth2.NewClient(context.Background(), tokenSource))
instances, err := client.ListInstances(context.Background(), nil)
if err != nil {
panic(err)
}
fmt.Printf("Instances: %+v\n", instances)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.69.1latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.