Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import (
- "github.com/couchbase/gocb"
- )
- var bucket *gocb.Bucket
- func main() {
- cluster, _ := gocb.Connect("couchbase://localhost")
- cluster.Authenticate(gocb.PasswordAuthenticator{
- Username: "UserName",
- Password: "Password",
- })
- bucket, _ = cluster.OpenBucket("BucketName", "")
- }
Add Comment
Please, Sign In to add comment