Documentation ¶
Index ¶
- func RandPostFromDirs(rootPath string, randCount int) []models.Post
- func RandPostInfoFromUserDir(rootPath string, userDirName string, randCount int) []models.Post
- func RandUsersFromRootDir(rootPath string, randCount int) []string
- func RenderPostFromUserDir(rootPath string, posts []models.Post) []models.Post
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandPostFromDirs ¶
rootPath下每个文件夹是对post分类 目前按照用户名分,post在二级目录 类似如下结构 /rootPath
/user1 /post1 img1 video1 content
func RandPostInfoFromUserDir ¶
func RandUsersFromRootDir ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.