1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-13 19:12:49 +00:00

Started working on MGO

This commit is contained in:
2016-05-16 03:34:26 -05:00
parent 73fcbe6a5f
commit 6627cb4cd6
20 changed files with 994 additions and 162 deletions

13
model/person.go Normal file
View File

@@ -0,0 +1,13 @@
package model
import (
"gopkg.in/mgo.v2/bson"
"time"
)
type Person struct {
ID bson.ObjectId `bson:"_id,omitempty"`
LastName string
FirstName string
Timestamp time.Time
}