Documentation ¶
Index ¶
- Constants
- func ArticleById(q *qbs.Qbs, id int64) (*xuanblog_article, error)
- func ArticleCount(q *qbs.Qbs) (count int64)
- func ArticleList(q *qbs.Qbs, offset int) ([]*xuanblog_article, error)
- func Check(err error)
- func DBConn() (q *qbs.Qbs)
- func Debug(infos ...interface{})
- func InitDb()
- func RedirectToError(this *beego.Controller, err error)
- func SliceContains(strSlice []string, str string) bool
- func Str2date(timeStr string) (timeObj time.Time, err error)
- func Str2slice(str string) []string
Constants ¶
View Source
const ( DEBUG = true // 输出调试信息 // DEBUG = false // 不输出调试信息 PAGE_SIZE = 10 //每页显示数据 )
Variables ¶
This section is empty.
Functions ¶
func ArticleCount ¶
func Debug ¶
func Debug(infos ...interface{})
当DEBUG开关打开时,输出调试信息 使用方法:`debug('格式化字符串', 参数1, 参数2, ...)` 输出结果:`DEBUG: 提示信息`(会自动换行) 相当于加强版的`fmt.Println()`,支持格式化字符串,输出以`DEBUG: `开头
func RedirectToError ¶
func RedirectToError(this *beego.Controller, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.