Versions in this module Expand all Collapse all v1 v1.3.1 May 23, 2018 Changes in this version + const KC_RAND_KIND_ALL + const KC_RAND_KIND_LOWER + const KC_RAND_KIND_NUM + const KC_RAND_KIND_UPPER + const StoreLocal + const StoreOss + var BasePath = filepath.Abs(filepath.Dir(os.Args[0])) + var ReleaseMaps = make(map[int]bool) + var ReleaseMapsLock sync.RWMutex + var Segmenter sego.Segmenter + var StoreType string = beego.AppConfig.String("store_type") + func AbsolutePath(p string) (string, error) + func AddMember(account, password string) error + func Asset(p string, cdn string) string + func CopyFile(dstName, srcName string) (written int64, err error) + func CrawlByChrome(urlstr string) (b []byte, err error) + func CrawlHtml2Markdown(urlstr string, contType int, force bool, intelligence int, diySelecter string, ...) (cont string, err error) + func DealUri(po *PageOptions, requestURI string) + func Decode(value string, r interface{}) error + func Encode(value interface{}) (string, error) + func ExecuteViewPathTemplate(tplName string, data interface{}) (string, error) + func FileExists(name string) bool + func FormatBytes(size int64) string + func GetPagerHtml(requestURI string, pageIndex, pageSize, totalCount int) html.HTML + func GetPagerLinks(po *PageOptions, requestURI string) (int, int, orm.RawSeter, html.HTML) + func GetPagesInfo(tableName string, currentpage int, pagesize int, conditions string) (int, int, orm.RawSeter) + func InMap(maps map[int]bool, key int) (ret bool) + func JoinURI(elem ...string) string + func Krand(size int, kind int) []byte + func ModifyPassword(account, old_password, new_password string) error + func NewPaginations(rollPage, totalRows, listRows, currentPage int, urlPrefix string, ...) html1.HTML + func ParseTitleFromMdHtml(html string) (title string) + func PasswordHash(pass string) (string, error) + func PasswordVerify(hashing string, pass string) (bool, error) + func RenderDocumentById(id int) + func Round(val float64, places int) float64 + func ScoreFloat(score int) string + func SegWord(str interface{}) (wds string) + func SendMail(conf *conf.SmtpConf, subject, email string, body string) error + func ShowImg(img string, style ...string) (url string) + func ValidLDAPLogin(password string) (result bool, err error) + type PageOptions struct + Conditions string + CurrentPage int + EnableFirstLastLink bool + EnablePreNexLink bool + FirstPageText string + Href string + LastPageText string + LinkItemCount int + NextPageText string + PageSize int + ParamName string + PrePageText string + TableName string + TotalPages int