models

package
v0.0.0-...-2d64d47 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostModel

type PostModel struct {
	ID           bson.ObjectId `bson:"_id,omitempty" json:"id"`
	Title        string        `json:"title"`
	Slug         string        `json:"slug"`
	Body         string        `json:"body"`
	AuthorID     string        `json:"author"`
	PublishTime  time.Time     `json:"publish_time"`
	CreationTime time.Time     `bson:"creationtime,omitempty" json:"creation_time"`
	UpdateTime   time.Time     `json:"update_time"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL