You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: compact.go
    path of file: ./repos/trickster/vendor/go.etcd.io/bbolt
    
    the code of the file until where you have to start completion: package bbolt

// Compact will create a copy of the source DB and in the destina
    
func walk(db *DB, walkFn walkFunc) error {
	return db.View(func(tx *Tx) error {
		return tx.ForEach(func(name []byte, b *Bucket) error {
			return walkBucket(b, nil, name, nil, b.Sequence(), walkFn)
		})
	})
}