Documentation ¶
Index ¶
- func AuthSign(Id int, Email string, Password string) string
- func AuthSignCheck(Id int, Email string, Password string, sign string) bool
- func ComputedHandlerSeconds(startTime int64) float64
- func LoginAuth(username, password string) smtp.Auth
- func Pwd() string
- func SHA256Encode(s string) string
- func SendMail(to, subject, body string) error
- func TimeDiffForHumans(t time.Time) string
- func ToString(i interface{}) string
- func Url(url string, params ...interface{}) string
- 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 ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SHA256Encode ¶
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.