added time
This commit is contained in:
		| @@ -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"` | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Darko Luketic
					Darko Luketic