Guest User

Untitled

a guest
Mar 31st, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. import (
  2. "github.com/couchbase/gocb"
  3. )
  4.  
  5. var bucket *gocb.Bucket
  6.  
  7. func main() {
  8. cluster, _ := gocb.Connect("couchbase://localhost")
  9.  
  10. cluster.Authenticate(gocb.PasswordAuthenticator{
  11. Username: "UserName",
  12. Password: "Password",
  13. })
  14.  
  15. bucket, _ = cluster.OpenBucket("BucketName", "")
  16. }
Add Comment
Please, Sign In to add comment