Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Post ¶
type Post struct { ID int64 `orm:"auto;column(id)"` Author string `orm:"size(128)" form:"author" valid:"Required;MinSize(1);MaxSize(128)"` Body string `orm:"type(longtext)" form:"body" valid:"Required;MinSize(1);MaxSize(1024)"` CreatedAt time.Time `orm:"type(datetime);auto_now_add"` UpdatedAt time.Time `orm:"type(datetime);auto_now"` }
Click to show internal directories.
Click to hide internal directories.