added time

This commit is contained in:
Darko Luketic
2018-04-03 22:11:59 +02:00
parent 054dc5afce
commit f89589d0db
8 changed files with 74 additions and 14 deletions

View File

@ -1,6 +1,10 @@
package model
import "github.com/globalsign/mgo/bson"
import (
"time"
"github.com/globalsign/mgo/bson"
)
type Data struct {
Id bson.ObjectId `bson:"_id,omitempty" json:"id"`
@ -9,4 +13,5 @@ type Data struct {
Location string `bson:"location" json:"location"`
Age float64 `bson:"age,omitempty" json:"age,omitempty"`
Price float64 `bson:"price,omitempty" json:"price,omitempty"`
When time.Time `bson:"when" json:"when"`
}