I changed the example a little bit
err1 := bucket.Set("someKey", 0, []string{"an", "example", "list"})
if err1 != nil {
log.Fatalf("Error setting bucket: %v", err1)
}
because I always get error.
on Couchbase 4, I got
Error setting bucket: MCResponse status=AUTH_ERROR, opcode=SASL_AUTH, opaque=0, msg: Auth failure
on Couchbase 5, I got
res=MCResponse status=SUCCESS, opcode=GET, opaque=0, msg: ,err=EOF
I changed the example a little bit err1 := bucket.Set("someKey", 0, []string{"an", "example", "list"}) if err1 != nil { log.Fatalf("Error setting bucket: %v", err1) } because I always get error. on Couchbase 4, I got Error setting bucket: MCResponse status=AUTH_ERROR, opcode=SASL_AUTH, opaque=0, msg: Auth failure on Couchbase 5, I got res=MCResponse status=SUCCESS, opcode=GET, opaque=0, msg: ,err=EOF