package
Version:
v0.0.0-...-e94906c
Opens a new window with list of versions in this module.
Published: Oct 10, 2017
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type BaseModel struct {
ID bson.ObjectId `json:"id,omitempty" bson:"_id"`
Title string `json:"title" bson:"title"`
Body string `json:"title" bson:"body"`
Tags []tags.Tag `json:"tags" body:"tags"`
}
BaseModel is a model that all other models (Except Tag) should inherit from
IsValid checks if model fields are valid before save
Source Files
¶
Click to show internal directories.
Click to hide internal directories.