Documentation ¶
Index ¶
- func AdminCheck(token string) bool
- func AdminEncrypt() string
- func CheckArticleOK(fileData []byte) bool
- func CheckDate(date string) bool
- func CheckDatePlus(date string) bool
- func CheckUpdateTime(createTime string) (updateTime string, flag bool)
- func Conetent2Abs(abs, content string) string
- func GerDateYear() string
- func GetDate() string
- func GetDate2() string
- func GetDatePlus() string
- func GetDateTime() string
- func GetSortMessage() string
- func GetSortPost(sortBy string, reverse bool) string
- func ParseAbs(fileRaw []byte) []byte
- func ParseMd(fileRaw []byte) []byte
- type MdData
- type Meta
- type YamlData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdminCheck ¶
func CheckArticleOK ¶
校验上传的文章字节流是否合法 合法即包含需要的yaml front信息 且信息内的title和name不为空
func CheckDatePlus ¶
func CheckUpdateTime ¶
CheckUpdateTime 检查上传日期和md内部的创建日期 当上传日期大于创建日期时才使用此日期作为更新日期
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.