Versions in this module Expand all Collapse all v1 v1.8.1 Sep 12, 2018 v1.8.0 Aug 9, 2018 Changes in this version + const PathAPIsSymArticle + const PathAPIsSymComment + func RandAvatarData() (ret []byte) + func RandString(n int) string v1.7.0 Jul 3, 2018 Changes in this version + const PathLogin + const PathRegister v1.6.0 May 31, 2018 Changes in this version + const PathOpensearch + const PathRSS + const PathSitemap type Configuration + ShowSQL bool v1.5.0 Apr 25, 2018 v1.4.0 Mar 21, 2018 Changes in this version + const PathAPIsSymArticles + const PathAPIsSymComments + const PathPlatInfo + func IsNumOrLetter(r rune) bool + func LoadMarkdown() v1.2.0 Jan 19, 2018 v1.1.0 Jan 11, 2018 Changes in this version + const PathChangelogs + const PathRobots + var File = myfile + var Models = []interface + var ZeroPushTime = time.Parse("2006-01-02 15:04:05", "2006-01-02 15:04:05") + func GetRemoteAddr(c *gin.Context) string type Configuration + MySQL string + SQLite string v1.0.0 Dec 28, 2017 Changes in this version + const HacPaiURL + const PathAPI + const PathActivities + const PathAdmin + const PathArchives + const PathArticles + const PathAtom + const PathAuthors + const PathBlogs + const PathCategories + const PathComments + const PathConsoleDist + const PathFavicon + const PathFetchUpload + const PathInit + const PathRoot + const PathSearch + const PathTags + const PathTheme + const PathUpload + var UserAgent = "Mozilla/5.0 (compatible; Pipe" + Version + "; +" + HacPaiURL + ")" + var Version = "1.0.0" + var Zip = myzip + func CurrentMillisecond() uint + func GetPage(c *gin.Context) int + func HacPaiAPI() gin.HandlerFunc + func ImageSize(imageURL string, width, height int) string + func IsDomain(s string) bool + func IsIP(s string) bool + func IsLetter(r rune) bool + func IsReservedPath(path string) bool + func IsWindows() bool + func LoadConf() + func Pwd() string + func RandImage() string + func RandImages(n int) []string + func RandInts(from, to, size int) []int + func Recover() + func UserHome() (string, error) + type Configuration struct + AxiosBaseURL string + DataFilePath string + LogLevel string + MockServer string + Port string + RuntimeMode string + Server string + SessionMaxAge int + SessionSecret string + StaticResourceVersion string + StaticRoot string + StaticServer string + var Conf *Configuration + type MarkdownResult struct + AbstractText string + ContentHTML string + ThumbURL string + func Markdown(mdText string) *MarkdownResult + type Pagination struct + CurrentPageNum int + FirstPageNum int + LastPageNum int + NextPageNum int + PageCount int + PageNums []int + PageSize int + PageURL string + PreviousPageNum int + RecordCount int + WindowSize int + func NewPagination(currentPageNum, pageSize, windowSize, recordCount int) *Pagination + type Result struct + Code int + Data interface{} + Msg string + func NewResult() *Result + type SessionData struct + BID uint + BURL string + UAvatar string + UB3Key string + UID uint + UName string + URole int + func GetSession(c *gin.Context) *SessionData + func (sd *SessionData) AvatarURLWithSize(size int) string + func (sd *SessionData) Save(c *gin.Context) error + type ZipFile struct + func (z *ZipFile) AddDirectory(path, dirName string) error + func (z *ZipFile) AddDirectoryN(path string, names ...string) error + func (z *ZipFile) AddEntry(path, name string) error + func (z *ZipFile) AddEntryN(path string, names ...string) error + func (z *ZipFile) Close() error