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.
minio
✓ github.com/minio/minio-go/v7
List all buckets using MinIO client.
package main
import (
"context"
"log"
"github.com/minio/minio-go/v7"
"github.com/minio/minio-go/v7/pkg/credentials"
)
func main() {
client, err := minio.New("play.min.io", &minio.Options{
Creds: credentials.NewStaticV4("Q3AM3UQ867SPQQA43P2F", "zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG", ""),
})
if err != nil {
log.Fatal(err)
}
buckets, err := client.ListBuckets(context.Background())
if err != nil {
log.Fatal(err)
}
for _, b := range buckets {
log.Println(b.Name)
}
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
7.2.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.