Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Person ¶
type Person struct { ID uint64 `bson:"_id" json:"id"` Name string `bson:"name" json:"name"` Address []Address `bson:"addresses" json:"addresses"` PhoneNumber string `bson:"phone_number" json:"phone_number"` DateOfBirth time.Time `bson:"dob" json:"dob"` Age uint32 `bson:"age" json:"age"` Balance float64 `bson:"balance" json:"balance"` Enabled bool `bson:"enabled" json:"enabled"` Counter int32 `bson:"counter" json:"counter"` Padding []byte `bson:"padding" json:"padding"` }
Person defines a semi-realistic data structure to be stored in the database.
Person was chosen to have a wide range of field types.
Click to show internal directories.
Click to hide internal directories.