package primitive
import "go.mongodb.org/mongo-driver/bson/primitive"
Package primitive contains types similar to Go primitives for BSON types can do not have direct Go primitive representations.
Index ¶
- type Binary
- type CodeWithScope
- type DBPointer
- type DateTime
- type JavaScript
- type MaxKey
- type MinKey
- type Null
- type Regex
- type Symbol
- type Timestamp
- type Undefined
Types ¶
type Binary ¶
Binary represents a BSON binary value.
func (Binary) Equal ¶
Equal compaes bp to bp2 and returns true is the are equal.
type CodeWithScope ¶
type CodeWithScope struct { Code JavaScript Scope interface{} }
CodeWithScope represents a BSON JavaScript code with scope value.
func (CodeWithScope) String ¶
func (cws CodeWithScope) String() string
type DBPointer ¶
DBPointer represents a BSON dbpointer value.
func (DBPointer) Equal ¶
Equal compaes d to d2 and returns true is the are equal.
func (DBPointer) String ¶
type DateTime ¶
type DateTime int64
DateTime represents the BSON datetime value.
type JavaScript ¶
type JavaScript string
JavaScript represents a BSON JavaScript code value.
type MaxKey ¶
type MaxKey struct{}
MaxKey represents the BSON maxkey value.
type MinKey ¶
type MinKey struct{}
MinKey represents the BSON minkey value.
type Null ¶
type Null struct{}
Null repreesnts the BSON null value.
type Regex ¶
Regex represents a BSON regex value.
func (Regex) Equal ¶
Equal compaes rp to rp2 and returns true is the are equal.
func (Regex) String ¶
type Symbol ¶
type Symbol string
Symbol represents a BSON symbol value.
type Timestamp ¶
Timestamp represents a BSON timestamp value.
func (Timestamp) Equal ¶
Equal compaes tp to tp2 and returns true is the are equal.
type Undefined ¶
type Undefined struct{}
Undefined represents the BSON undefined value type.
Source Files ¶
primitive.go
- Version
- v0.0.18
- Published
- Nov 15, 2018
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 2 hours ago –
Tools for package owners.