code: func (b *Bucket) Cursor() *Cursor {
  	// Update transaction statistics.
  	b.tx.stats.CursorCount++
  
  	// Allocate and return a cursor.
  	return &Cursor{
  		bucket: b,
  		stack:  make([]elemRef, 0),
  	}
  }
docs: // Cursor creates a cursor associated with the bucket.
  // The cursor is only valid as long as the transaction is open.
  // Do not use a cursor after the transaction is closed.