Golang probelm with Bucket auth

#1

Based on this golang package https://github.com/couchbaselabs/go-couchbase

The following code

fmt.Println("Db Api Init")

c, err := couchbase.ConnectWithAuthCreds("http://ip.ip.ip:8091/", "username", "password")
if err != nil {
	log.Fatalf("Error connecting:  %v", err)
}
fmt.Println("Db Api Init 2")

pool, err := c.GetPool("default")
if err != nil {
	log.Fatalf("Error getting pool:  %v", err)
}
fmt.Println("Db Api Init 3")

// not sure what is the username
bucket, err := pool.GetBucketWithAuth("mybucketname", "", ",mypasword")
mf(err, "bucket")

fmt.Println("Db Api Init 4")
bucket.Set("test12", 90, []string{"an", "example", "list"})
//mf(err2, "set")
fmt.Println("Db Api Init 5")
ob := []string{"not", "empty"}
err = bucket.Get("test12", &ob)
   Db Api Init 4
   2015/01/15 16:33:01 set: MCResponse status=0x20, opcode=SASL_AUTH, opaque=0, msg
   : Auth failure
   exit status 1

output

TQsTore Init
Db Api Init
Db Api Init 2
Db Api Init 3
Db Api Init 4
2015/01/15 16:33:01 set: MCResponse status=0x20, opcode=SASL_AUTH, opaque=0, msg
: Auth failure
exit status 1

Well , Im not sure with is The Username param in the pool.GetBucketWithAuth(bucketname, username , password)

Any help is welcome , thanks ( is there any official update on go lang sdk comming soon ?)

#2

Ok Issue solved

pool.GetBucketWithAuth(bucketname, username , password)

Changed to , so Username is actually bucketname.

pool.GetBucketWithAuth("bucketName", "bucketName","bucketpassword")

Hope this info helps anyone