Documentation ¶
Overview ¶
Copyright 2014 wudaoren. All rights reserved. Use of this source code is governed by a MIT style license that can be found in the LICENSE file.
Copyright 2014 wudaoren. All rights reserved. Use of this source code is governed by a MIT style license that can be found in the LICENSE file.
Index ¶
- Constants
- func CheckFatalError(title string, e error)
- func CreatePageMenu(url string, pageCurrent, pageTotal int) template.HTML
- func Debug(args ...interface{})
- func HtmlData(c *gin.Context, templFile string, data interface{})
- func HtmlMsg(c *gin.Context, status, msg string, gotoURL interface{})
- func Md5(str string) string
- func PageQuery(sess *xorm.Session, page int, limit int, find interface{}) int
- type MemSession
- type SesionEngine
Constants ¶
View Source
const ( MSG_SUCC = "success" MSG_ERR = "error" )
输出消息页面
View Source
const (
SESSION_NAME = "WUDAOREN"
)
Variables ¶
This section is empty.
Functions ¶
func CheckFatalError ¶
致命错误检查,title=如果错误输出的标题,e=要检查的错误输出
func CreatePageMenu ¶
创建分页按钮 url=跳转的url,pageCurrent=当前页,pageTotal=页面总数
Types ¶
type MemSession ¶
session对象
func (*MemSession) Clear ¶
func (this *MemSession) Clear()
func (*MemSession) Del ¶
func (this *MemSession) Del(key string)
func (*MemSession) Get ¶
func (this *MemSession) Get(key string) interface{}
func (*MemSession) Set ¶
func (this *MemSession) Set(key string, value interface{})
type SesionEngine ¶
type SesionEngine struct {
// contains filtered or unexported fields
}
默认session engine
Click to show internal directories.
Click to hide internal directories.