Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarkdownSanitize ¶
func SanitizeTitle ¶
Types ¶
type Article ¶
type Article struct { Id int `sql:"id,pk" json:"id" form:"id"` Title string `sql:"title,notnull" json:"title" form:"title" binding:"required"` Content string `sql:"content,notnull" json:"content" form:"content" binding:"required"` Author string `sql:"author" json:"author"` Created time.Time `sql:"created" json:"created"` Updated time.Time `sql:"updated,nullempty" json:"updated,omitempty"` }
func (*Article) HtmlContent ¶
type Link ¶
type Link struct { Id int `sql:"id,pk" json:"id" form:"id"` Title string `sql:"title,notnull" json:"title" form:"title" binding:"required"` Url template.URL `sql:"url,unique,notnull" json:"url" form:"url" binding:"required"` Position int `sql:"position" json:"position" form:"position"` Author string `sql:"author" json:"author"` Created time.Time `sql:"created" json:"created"` }
Click to show internal directories.
Click to hide internal directories.