remove logs

This commit is contained in:
namhq1989 2023-01-08 21:00:34 +07:00
parent 3a4bb6d7b1
commit ce13b7762f
2 changed files with 3 additions and 8 deletions

View File

@ -1,5 +1,7 @@
package minio
var region = "ap-southeast-1"
var Buckets = struct {
HelpCenter string
}{

View File

@ -1,7 +1,6 @@
package minio
import (
"context"
"errors"
"fmt"
@ -14,12 +13,10 @@ func Init(cfg Config) (*Client, error) {
return nil, err
}
fmt.Println("cfg", cfg)
client, err := min.New(cfg.Endpoint, &min.Options{
Creds: credentials.NewStaticV4(cfg.AccessKey, cfg.SecretKey, ""),
Secure: cfg.UseSSL,
Region: "ap-southeast-1",
Region: region,
})
// return if error
@ -34,10 +31,6 @@ func Init(cfg Config) (*Client, error) {
fmt.Printf("⚡️[minio]: connected to %s \n", cfg.Endpoint)
buckets, err := client.ListBuckets(context.Background())
fmt.Println("buckets", buckets)
fmt.Println("err", err)
// return
return &Client{
client: client,