# Functions
CompareTimestamp compares the time instant tp with tp2.
IsValidObjectID returns true if the provided hex string represents a valid ObjectID and false if not.
NewDateTimeFromTime creates a new DateTime from a Time.
NewDecimal128 creates a Decimal128 using the provide high and low uint64s.
NewObjectID generates a new ObjectID.
NewObjectIDFromTimestamp generates a new ObjectID based on the given time.
ObjectIDFromHex creates a new ObjectID from a hex string.
ParseDecimal128 takes the given string and attempts to parse it into a valid Decimal128 value.
ParseDecimal128FromBigInt attempts to parse the given significand and exponent into a valid Decimal128 value.
# Constants
These constants are the maximum and minimum values for the exponent field in a decimal128 value.
These constants are the maximum and minimum values for the exponent field in a decimal128 value.
# Variables
ErrInvalidHex indicates that a hex string cannot be converted to an ObjectID.
These errors are returned when an invalid value is parsed as a big.Int.
These errors are returned when an invalid value is parsed as a big.Int.
These errors are returned when an invalid value is parsed as a big.Int.
NilObjectID is the zero value for ObjectID.
# Structs
Binary represents a BSON binary value.
CodeWithScope represents a BSON JavaScript code with scope value.
DBPointer represents a BSON dbpointer value.
Decimal128 holds decimal128 BSON values.
E represents a BSON element for a D.
MaxKey represents the BSON maxkey value.
MinKey represents the BSON minkey value.
Null represents the BSON null value.
Regex represents a BSON regex value.
Timestamp represents a BSON timestamp value.
Undefined represents the BSON undefined value type.
# Type aliases
An A is an ordered representation of a BSON array.
D is an ordered representation of a BSON document.
DateTime represents the BSON datetime value.
JavaScript represents a BSON JavaScript code value.
M is an unordered representation of a BSON document.
ObjectID is the BSON ObjectID type.
Symbol represents a BSON symbol value.