Get returns the value for the given key. Returns nil if the key does not exist in this bucket. An empty slice is returned for keys that exist but have no value assigned.

NOTE: The value returned by this function is only valid during a transaction. Attempting to access it after a transaction has ended results in undefined behavior. Additionally, the value must NOT be modified by the caller.

This function is part of the database.Bucket interface implementation.

Get is referenced in 1 repository