package
Version:
v0.0.0-...-3c47a5c
Opens a new window with list of versions in this module.
Published: Sep 22, 2018
License: Unlicense
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Address struct {
City string `json:"city,omitempty"`
State string `json:"state,omitempty"`
}
An Address entity that consits of City and State
type Movie struct {
ID bson.ObjectId `bson:"_id" json:"id"`
Name string `bson:"name" json:"name"`
CoverImage string `bson:"cover_image" json:"cover_image"`
Description string `bson:"description" json:"description"`
}
A Movie entity with MongoDB's BSON forma
type Person struct {
ID string `json:"id,omitempty"`
Firstname string `json:"firstname,omitempty"`
Lastname string `json:"lastname,omitempty"`
Address *Address `json:"address,omitempty"`
}
A Person entity
Source Files
¶
Click to show internal directories.
Click to hide internal directories.