Documentation ¶
Index ¶
- Constants
- Variables
- func CheckJsonSync(Jstr []byte) ([]byte, bool)
- func Checkfilesynckind(kind string) bool
- func CodeNumInit()
- func CreateCaptcha() string
- func Debug() (string, bool)
- func Getdatapath() string
- func InitUtils()
- func IsDir(path string) bool
- func IsFile(path string) bool
- func PathExists(path string) (bool, error)
- func Pwd() string
- func SHA256Encode(s string) string
- func TimeDiffForHumans(t time.Time) string
- func ToString(i interface{}) string
- func Url(url string, params ...interface{}) string
- func VerifyEmailFormat(email string) bool
- func VerifyMobileFormat(mobileNum string) bool
- type BootstrapPaginator
- func (bp *BootstrapPaginator) Append(params map[string]string)
- func (bp *BootstrapPaginator) BuildUrl(Page int64) string
- func (bp *BootstrapPaginator) ComputeTotalPage()
- func (bp *BootstrapPaginator) Instance(total int64, currentPage int64, perPage int64, url string)
- func (bp *BootstrapPaginator) Render() string
- func (bp *BootstrapPaginator) RenderItem(page int64) string
- func (bp *BootstrapPaginator) RenderNextItem() string
- func (bp *BootstrapPaginator) RenderPrevItem() string
- func (bp *BootstrapPaginator) RenderUselessItem() string
Constants ¶
View Source
const UserInfoDir = "/UserInfo/"
Variables ¶
View Source
var ( Success_200 = 200 Error_token_201 = 201 Error_user_password_202 = 202 Error_update_userpassword_203 = 203 Error_invalid_mobile_204 = 204 Error_invalid_token_205 = 205 Error_user_create_206 = 206 Error_invalid_sms_207 = 207 )
View Source
var CodeNum map[int]string
Functions ¶
func CheckJsonSync ¶
func Checkfilesynckind ¶
func CodeNumInit ¶
func CodeNumInit()
func CreateCaptcha ¶
func CreateCaptcha() string
func Getdatapath ¶
func Getdatapath() string
func PathExists ¶
func SHA256Encode ¶
func TimeDiffForHumans ¶
func VerifyEmailFormat ¶
Types ¶
type BootstrapPaginator ¶
type BootstrapPaginator struct { Total int64 CurrentPage int64 Url string PerPage int64 TotalPage int64 Appends map[string]string }
func (*BootstrapPaginator) Append ¶
func (bp *BootstrapPaginator) Append(params map[string]string)
func (*BootstrapPaginator) BuildUrl ¶
func (bp *BootstrapPaginator) BuildUrl(Page int64) string
func (*BootstrapPaginator) ComputeTotalPage ¶
func (bp *BootstrapPaginator) ComputeTotalPage()
func (*BootstrapPaginator) Instance ¶
func (bp *BootstrapPaginator) Instance(total int64, currentPage int64, perPage int64, url string)
func (*BootstrapPaginator) Render ¶
func (bp *BootstrapPaginator) Render() string
func (*BootstrapPaginator) RenderItem ¶
func (bp *BootstrapPaginator) RenderItem(page int64) string
func (*BootstrapPaginator) RenderNextItem ¶
func (bp *BootstrapPaginator) RenderNextItem() string
func (*BootstrapPaginator) RenderPrevItem ¶
func (bp *BootstrapPaginator) RenderPrevItem() string
func (*BootstrapPaginator) RenderUselessItem ¶
func (bp *BootstrapPaginator) RenderUselessItem() string
Click to show internal directories.
Click to hide internal directories.