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:
13
model/person.go
Normal file
13
model/person.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user